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(9.2519165021477700 + ,22.2914871230951000 + ,-37.1571787649763000 + ,34.2241616969560000 + ,-175.7914077233690000 + ,104.9760837880910000 + ,-61.2440566193924000 + ,-396.7296705199910000 + ,-396.4443981159500000 + ,-260.0093162506190000 + ,127.9690108389240000 + ,-36.0298439908650000 + ,204.1383693047720000 + ,44.2385868220351000 + ,-159.7062875865580000 + ,203.1351380140120000 + ,121.7565242401950000 + ,-16.2019122127222000 + ,-243.9008100164380000 + ,391.6948428108540000 + ,-164.2301675092280000 + ,293.8211840355430000 + ,150.1976556071950000 + ,-191.0274890375130000 + ,251.8423217530370000 + ,-153.3748812044940000 + ,8.1840259602576600 + ,276.1970369319000000 + ,7.4935640416714600 + ,290.3101335840170000 + ,154.7090152986450000 + ,-344.5632159525820000 + ,-268.8126246698540000 + ,308.7880073528660000 + ,53.4487117440643000 + ,309.7451584514370000 + ,86.3072721974973000 + ,-34.8646306292142000 + ,196.5617703101340000 + ,226.5135122868370000 + ,-188.0025901642620000 + ,-58.5622808860067000 + ,209.1480596873730000 + ,145.9690997131140000 + ,129.4017523844170000 + ,-33.0299340425404000 + ,-386.0498082130190000 + ,144.2485012802840000 + ,117.1389647704940000 + ,129.8971180442860000 + ,-152.2186889068030000 + ,-55.0236881931042000 + ,144.0221360767120000 + ,-16.8566548271110000 + ,144.6858045733700000 + ,-160.2029736349430000 + ,329.6206509205720000 + ,138.3173761131970000 + ,9.0003836842157900 + ,50.5918463806914000 + ,313.8752975196370000 + ,236.9076376074890000 + ,110.0513290511830000 + ,-383.8489474627510000) > #'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/1eush1386163011.tab") > > > > proc.time() user system elapsed 0.645 0.156 0.762