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(3.59954721,0.04238554,-2.81307431,-1.22439409,-2.60493705,-1.12063322,0.78457483,-2.63132972,-1.00729584,1.91660041,4.01771088,-0.08323368,-0.36351422,1.37332165,-3.4313958,0.78524813,0.78826526,1.33230189,2.06724768,-6.91844089,-3.4061436,-4.46767131,-8.65160446,-1.57721066,-1.12578031,1.52417663,5.26038156,5.16049345,-2.12120079,-5.66164291,-4.55566816,4.48097758,4.01455406,3.18792001,1.70293029,0.26449855,3.45663965,-2.28781022,-6.24314264,4.72755313,3.80538479,5.34962762,-0.40937922,8.23589769,3.17749882,-2.31669705,4.62988865,-6.93873033,-4.23410743,-3.95416054,3.15483735,4.48483132,-3.93480588,-3.82846083,1.37872099,0.75358492,0.73812514,5.32867038,7.86878864,3.56877219,-1.88841602,2.83447464,1.32609905,1.52466813,5.68476555,1.52821666,-2.67388034,-2.5408683,-9.82054212,1.56062769,-3.85432832,5.10421924,-4.90526386,-5.32496036,4.93205428,6.02364807,-0.41092927,1.60134902,-3.85158793,-4.36134447,-4.00596907,-2.9970532) > #'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/1rih31355582026.tab") > > > > proc.time() user system elapsed 0.312 0.089 0.380