R version 2.9.0 (2009-04-17) Copyright (C) 2009 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. > par4 = '1' > par3 = '0' > par2 = '1.33' > par1 = '-1.33' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > if (par1 == '') par1 <- -Inf else par1 <- as.numeric(par1) > if (par2 == '') par2 <- Inf else par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > par4 <- as.numeric(par4) > if (par4 <= 0) par4 = 1 > (pl <- pnorm(par1,par3,par4)) [1] 0.09175914 > (pu <- pnorm(par2,par3,par4)) [1] 0.9082409 > (pbetween <- pu - pl) [1] 0.8164817 > (poutside <- 1 - pbetween) [1] 0.1835183 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Area under Normal Density Function',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'lower value (L)',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'upper value (U)',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'mean',header=TRUE) > a<-table.element(a,par3) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'standard deviation',header=TRUE) > a<-table.element(a,par4) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'P[X <= L]',header=TRUE) > a<-table.element(a,pl) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'P[X <= U]',header=TRUE) > a<-table.element(a,pu) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'P[L <= X < U]',header=TRUE) > a<-table.element(a,pbetween) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'1 - P[L <= X < U]',header=TRUE) > a<-table.element(a,poutside) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/1ye4d1286986717.tab") > > > > proc.time() user system elapsed 0.198 0.025 0.233