R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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. > > RC.capture <- function (expression, collapse = NULL) { + resultConn <- textConnection('RC.resultText', open = 'w', local=TRUE) + sink(resultConn) + on.exit(function() { + sink() + close(resultConn) + }) + expression + on.exit(NULL) + sink() + close(resultConn) + return(paste(c(RC.resultText, ''), collapse = collapse, sep = '')) + } > RC.texteval <- function (sourceText, collapse = NULL, echo = TRUE) { + sourceConn <- textConnection(sourceText, open = 'r') + on.exit(close(sourceConn)) + result <- RC.capture(source(file = sourceConn, local = FALSE, echo = echo, print.eval = TRUE), collapse = collapse) + on.exit(NULL) + close(sourceConn) + res <- '' + for(i in 1:length(result)) { + if (result[i]!='') res <- paste(res,result[i],' + ',sep='') + } + return(res) + } > x <- c(-0.162637151291579 + ,-0.180394228269027 + ,-0.364008335827929 + ,-0.0270443217228204 + ,-0.275283186461801 + ,-0.185095913822426 + ,-0.247007799961421 + ,-0.220465409663496 + ,-0.23063180956395 + ,-0.193800129123004 + ,0.0674648416370502 + ,-0.0085671686385985 + ,-0.333529742913951 + ,0.0330930195427012 + ,-0.0130726942059372 + ,0.132787893099404 + ,0.0219102352292198 + ,-0.189134130859165 + ,-0.169177671538496 + ,0.120224579952096 + ,-0.124484963403928 + ,-0.147367463580677 + ,0.0984383251674323 + ,0.0217774561844254 + ,-0.0744395264990117 + ,-0.0446350398685368 + ,-0.128084424821365 + ,-0.0333288297285485 + ,0.100330115888202 + ,-0.13017731383983 + ,-0.106962718698316 + ,0.0778948024606463 + ,0.0139494836972177 + ,0.095391205127304 + ,0.113695891822296 + ,-0.134295597649715 + ,0.0458095202906186 + ,-0.0023515808296307 + ,0.0313483588680372 + ,0.137702034076043 + ,0.0921371624665468 + ,0.107585129709321 + ,0.22267397135679 + ,-0.121964006947163 + ,0.157118631984031 + ,0.387817135281783 + ,-0.122794068789931 + ,-0.198797205144297 + ,0.0247956740720478 + ,0.497297664258373 + ,0.0653148798311518 + ,-0.0446084464965516 + ,0.187287550034541 + ,-0.0634911901876058 + ,0.15402676227634 + ,0.0655254521706966 + ,-0.000116440314518145 + ,0.392274080407036 + ,0.0458230530431735 + ,0.0592643446680893 + ,-0.0552469241494706 + ,0.0409419991182435 + ,0.354400172876773 + ,0.254637001556926 + ,0.11225700665814) > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2011, 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: > #Technical description: > library(moments) > agostino <- agostino.test(x) > anscombe <- anscombe.test(x) > geary <- geary(x) > jarque <- jarque.test(x) > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Skewness and Kurtosis Test',1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('agostino'),'
',sep='')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('anscombe'),'
',sep='')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('jarque'),'
',sep='')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('geary'),'
',sep='')) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/1ktev1324122546.tab") > > > > proc.time() user system elapsed 0.224 0.046 0.584