R version 2.6.2 (2008-02-08) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > par3 = '1' > par2 = '0' > par1 = '1.96' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Patrick > #To cite this work: Wessa P., (2007), Normal CDF (v1.0.2), Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_cdfnorm.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Computes cumulative probability of the Normal Distribution for a given value (quantile), mean, and standard deviation. > #Note 1: par1, par2, and par3 have to be converted to numeric because pnorm does not accept strings. > #Note 2: picture is computed for the range -par1 to par1 > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > r<-pnorm(par1,par2,par3) > r [1] 0.9750021 > load(file='/var/www/html/rcomp/createtable') > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'CDF Normal Distribution',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'value',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'mean',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'standard deviation',header=TRUE) > a<-table.element(a,par3) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'probability',header=TRUE) > a<-table.element(a,r) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/1ls241207062319.tab") > > > > proc.time() user system elapsed 0.422 0.022 0.455