R version 2.6.1 (2007-11-26) Copyright (C) 2007 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. > x <- c(118.4,118.3,118.4,118.6,118.6,116.5,117.7,117.3,117.1,116.9,116.2,113.7,115.2,115.6,115.8,115.2,115.3,113.4,114.6,114.7,114.3,113.7,113.6,111.5,113,113,112.8,113.2,113,111.1,112.4,112,112.4,112.6,112.3,110,111.1,111,111.2,111.3,111.2,109.6,110.7,111,110.8,110.7,110.5,108.7,109.7,109.8,109.8,110,109.8,108.4,109.8,109.5,109,108,107.8,105.9,107.6,107.9,107.7,107.9,107.1,105.5,106.6,106.2,105.9,105.7,105.2,103.1,104.5,104.1,103.9,103.8,103.5,103.7,103.5,103.7,103.5,103.1,103,102.8,102.4,102.5,102.5,102.5,102.6,103,102.8,102.9,102.4,101.8,102,101.8,101.7,101.9,101.8,101.7,101.6,101.8,101.6,101.6,101.1,100.8,101.2,101.3,100.8,100.6,100.6,100.1,99.9,99.9,100,100.2,100,99.5,99.3,99.2,98.7,98.5,98.4,98.6,98.7,98.4,98.1,98.1,98,97.9,97.9,97.8) > ylab = 'Density' > xlab = 'Value' > #'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!) > postscript(file="/var/www/html/rcomp/tmp/14wcd1203973612.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity1<-density(x,kernel='gaussian',na.rm=TRUE) > plot(mydensity1,main='Gaussian Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > mydensity1 Call: density.default(x = x, kernel = "gaussian", na.rm = TRUE) Data: x (132 obs.); Bandwidth 'bw' = 2.06 x y Min. : 91.62 Min. :7.768e-05 1st Qu.: 99.91 1st Qu.:8.264e-03 Median :108.20 Median :3.610e-02 Mean :108.20 Mean :3.012e-02 3rd Qu.:116.49 3rd Qu.:4.682e-02 Max. :124.78 Max. :6.484e-02 > postscript(file="/var/www/html/rcomp/tmp/20nos1203973612.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity2<-density(x,kernel='epanechnikov',na.rm=TRUE) > plot(mydensity2,main='Epanechnikov Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/30w1t1203973612.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity3<-density(x,kernel='rectangular',na.rm=TRUE) > plot(mydensity3,main='Rectangular Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4dqci1203973612.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity4<-density(x,kernel='triangular',na.rm=TRUE) > plot(mydensity4,main='Triangular Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5k9za1203973612.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity5<-density(x,kernel='biweight',na.rm=TRUE) > plot(mydensity5,main='Biweight Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6czbm1203973612.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity6<-density(x,kernel='cosine',na.rm=TRUE) > plot(mydensity6,main='Cosine Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7bj9l1203973612.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity7<-density(x,kernel='optcosine',na.rm=TRUE) > plot(mydensity7,main='Optcosine Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > load(file='/var/www/html/rcomp/createtable') > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Properties of Density Trace',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Bandwidth',header=TRUE) > a<-table.element(a,mydensity1$bw) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'#Observations',header=TRUE) > a<-table.element(a,mydensity1$n) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/8n59c1203973612.tab") > > system("convert tmp/14wcd1203973612.ps tmp/14wcd1203973612.png") > system("convert tmp/20nos1203973612.ps tmp/20nos1203973612.png") > system("convert tmp/30w1t1203973612.ps tmp/30w1t1203973612.png") > system("convert tmp/4dqci1203973612.ps tmp/4dqci1203973612.png") > system("convert tmp/5k9za1203973612.ps tmp/5k9za1203973612.png") > system("convert tmp/6czbm1203973612.ps tmp/6czbm1203973612.png") > system("convert tmp/7bj9l1203973612.ps tmp/7bj9l1203973612.png") > > > proc.time() user system elapsed 1.711 1.225 2.155