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(-0.0229880307959967 + ,0.278439664212683 + ,0.214776253107494 + ,0.204708843256655 + ,-0.0517577687089031 + ,-0.320596288416998 + ,-0.272402878623526 + ,-0.231766333497631 + ,-0.304560456117129 + ,0.186972426563861 + ,0.135263966115808 + ,0.339365367712853 + ,0.131670289948456 + ,-0.276095874698097 + ,0.0603457812816131 + ,-0.213807209194737 + ,-0.0678819428665521 + ,-0.128154986599206 + ,-0.23319021743902 + ,-0.395065126908713 + ,-0.173893414297138 + ,0.0208186102747535 + ,-0.0437918857502117 + ,0.0504454747606821 + ,-0.221076211699185 + ,0.0916961112709848 + ,0.263228114155631 + ,0.257490056913535 + ,0.62111209200697 + ,0.246405883888872 + ,0.630817230574024 + ,0.575541929993828 + ,0.661994430402931 + ,0.782080225879709 + ,0.496394308992335 + ,0.723732072489225 + ,0.572778058859264 + ,0.478805751502218 + ,0.353051540990384 + ,0.0511748576258525 + ,-0.0896173448620862 + ,-0.361218723883353 + ,-0.229175960949758 + ,-0.442083135404132 + ,-0.123230805794189 + ,-0.206575861424036 + ,-0.0867907189531886 + ,-0.054261633053142 + ,-0.257013907753785 + ,-0.378996466777591 + ,-0.471352715785107 + ,-0.177850799262201 + ,-0.186001656973008 + ,-0.565708770812139 + ,-0.151588620144252 + ,-0.223505128304725 + ,-0.235117834858457 + ,-0.199470464270386 + ,-0.549004163491896 + ,-0.483516004410139) > #'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/1iyb41356212864.tab") > > > > proc.time() user system elapsed 0.391 0.081 0.516