R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing 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.00509985932295509 + ,-0.320818222286888 + ,-0.197117196687452 + ,-0.273021303154159 + ,-0.259307390005561 + ,0.117630375827139 + ,0.555831262688101 + ,0.010351517675088 + ,0.186684058005416 + ,0.364862612399688 + ,0.208424913402032 + ,0.0647618673786489 + ,0.0525051410399968 + ,0.321269449652341 + ,-0.350838864527021 + ,0.0658651693688728 + ,0.149554375196613 + ,-0.114936607453198 + ,-0.0612678864901738 + ,-0.00290255501150305 + ,0.299406072944713 + ,-0.236384620475663 + ,0.0015162047029825 + ,-0.0938556758527673 + ,0.124750000263356 + ,-0.471783613685228 + ,0.234820874083843 + ,-0.0203883669827977 + ,-0.129022235700457 + ,0.041076861804919 + ,-0.29004767860936 + ,0.314346990835869 + ,0.191624455541518 + ,0.303417989902342 + ,-0.268503945062622 + ,0.289915006795012 + ,-0.0448823511961261 + ,0.213557197426895 + ,-0.0820876439224611 + ,0.236085417896762 + ,0.173065057049405 + ,0.251710933962102 + ,-0.160389171911666 + ,0.40817566275154 + ,0.0820190953928902 + ,0.0173582939155595 + ,-0.0866614148161779 + ,0.000536593053893895 + ,0.329911858162196 + ,0.115744305385573 + ,0.0621722848647087 + ,-0.0861085957245128 + ,0.0753749365683205 + ,-0.250523461798932 + ,-0.228666727370203 + ,0.0163675459851644 + ,-0.129247437631836 + ,0.0984376599509383 + ,0.100778218291185 + ,-0.0302527053025421 + ,-0.1037533234522 + ,-0.218990024090205 + ,0.187279008866825 + ,0.330481842656331 + ,-0.412290770407357 + ,0.0545177145540067 + ,-0.122307642656818 + ,-0.0956975808541104 + ,0.143309956329961 + ,0.0187572159841698 + ,0.0916514301580276 + ,-0.114220581652296 + ,0.0100967146974866 + ,-0.318283738127712 + ,0.2145351886932 + ,-0.141165358157766 + ,0.131873070807267) > #'GNU S' R Code compiled by R2WASP v. 1.2.327 () > #Author: root > #To cite this work: Wessa P., (2013), Skewness and Kurtosis Test (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_skewness_kurtosis.wasp/ > #Source of accompanying publication: > # > 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/1s0z81386839391.tab") > > > > proc.time() user system elapsed 0.716 0.193 0.860