R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-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(-1.879009952,68.72637048,-9.176645127,-2.617198579,-5.820067245,-16.57675314,0.339974258,3.475976538,-2.032165864,13.9321823,-7.91126835,-10.30566315,1.29556517,-5.454884683,-7.341540982,-44.95148138,-3.446587445,-25.26565356,-3.726093716,-1.088070882,-6.33238932,43.48719976,22.49796175,-4.07501402,-6.427197666,6.047878352,-0.233244892,0.185589463,-2.298161244,1.290842449,-10.22479328,-1.072203071,58.10252085,-7.945552948,-1.894327263,20.94233088,20.37878847,25.19789575,-6.143214159,-32.47632593,0.988671522,-11.73035863,0.587874867,-9.139066448,-17.27067213,-1.084411705,27.39231244,30.19621954,-6.657544201,-5.486884207,9.829240382,19.79542844,6.770464869,18.45121932,-8.895124752,-10.2601667,-15.70423319,-107.4603053,-4.489492817,-5.212180117,-6.180191927,-5.395433641,-13.1961871,-5.300303729,7.585243507,7.169811194,3.964937891,-4.897315627,-6.297005843,4.305517856,-8.265005322,-22.60199085,-2.236482972,50.02057768,-25.97523268,-16.31694071,-6.587317413,21.79151471,58.60524518) > #'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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/1i8wg1354198538.tab") > > > > proc.time() user system elapsed 0.288 0.081 0.349