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 + ,-1.94834264125015 + ,-1.35938514876797 + ,1.35795496412481 + ,-1.70069468175497 + ,1.44996900849938 + ,1.31903815630069 + ,2.05149160604926 + ,-0.133535063101566 + ,1.03724496156112 + ,0.63142261575917 + ,-1.63792541267238 + ,-0.867991128955308 + ,-1.07958030968515 + ,-0.672654981836742 + ,-1.05064354962543 + ,0.333390996185739 + ,0.487322267446532 + ,-0.570817054401088 + ,-0.499534007121835 + ,0.115264994351102 + ,1.74691902012461 + ,0.739021637104409 + ,0.738226066304609 + ,-0.41299927393743 + ,-1.58336341056381 + ,-0.181363817381967 + ,0.105418963881337 + ,-0.463545967786301 + ,-1.21612196637376 + ,1.64060386180114 + ,-0.0528713661577582 + ,1.52368500476979 + ,1.08334468835021 + ,-0.469412703827005 + ,0.721118803353077 + ,-0.943920679048537 + ,-0.522581909811403 + ,0.359348877235232 + ,-0.247868668824745 + ,0.562507597657474 + ,0.64814873561941 + ,-1.27010850628161 + ,-0.447026313045732 + ,1.78025952002197 + ,0.731000413630024 + ,1.58105415816898 + ,-0.0984553656677268 + ,-0.585819712707743 + ,0.397301065018393 + ,0.0963073674180238 + ,-1.03366376752918 + ,-0.793451126625965 + ,0.871673983985699 + ,0.80325982935323 + ,1.24994658683419 + ,-0.295993912664426 + ,-1.45005328321816 + ,0.767875715674426 + ,0.609240092225543 + ,0.933296632597031 + ,-0.679282808379915 + ,-1.19659266892572 + ,0.418815651594879 + ,-0.181297827175938 + ,0.432789884150497 + ,-0.065942989884464 + ,1.73980299717976 + ,0.328406731705262 + ,0.120753615482844 + ,-0.369205392526939 + ,0.791445739642711 + ,0.866899132578154 + ,0.0740812251511718 + ,-2.26488583771179) > #'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/1cs1f1324467966.tab") > > > > proc.time() user system elapsed 0.259 0.042 0.292