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(9.55328518274065 + ,6.86469486839134 + ,5.4091050919908 + ,1.27610590597605 + ,-6.42316432776776 + ,25.5122300515416 + ,-8.1890659314046 + ,20.5436763284479 + ,-10.1223642893233 + ,-61.1537646423693 + ,-105.471510088703 + ,13.1461960842031 + ,48.3495050217485 + ,-2.0480501431288 + ,19.5050809232576 + ,-38.335926809279 + ,39.8086270040836 + ,-46.6648032672074 + ,12.0026086689358 + ,-18.6754118037333 + ,22.3253938773091 + ,-17.4750331631132 + ,-29.4143285396072 + ,-25.6690520639605 + ,0.765317318346362 + ,-1.60955780513446 + ,3.99181685877025 + ,20.5211966500554 + ,23.2396658622014 + ,-40.9658370741898 + ,48.4984505711631 + ,0.0284586360653378 + ,22.2325697327513 + ,17.4945615414381 + ,-19.8113910067084 + ,1.98897845357396 + ,-8.03612802962945 + ,-11.7937238475062 + ,-27.5485768972279 + ,-25.8253943324135 + ,-62.4433230769987 + ,-28.5759025308874 + ,-37.3350961492407 + ,11.0624213459401 + ,11.0088523464543 + ,28.8621637681549 + ,-6.80140446270038 + ,-47.9862803143687 + ,-0.951675237221107 + ,3.68678943428925 + ,-0.607051733862111 + ,8.9494262953859 + ,-8.82308567397584 + ,-4.94694052716303 + ,-9.1988348561934 + ,-7.30938216645249 + ,12.0691765152876 + ,5.80782009016995 + ,-10.2017554894769 + ,8.33061143518972 + ,-6.40777636905471 + ,7.30609737440095 + ,-6.35539778514564 + ,1.17971233534776 + ,3.66177494997005 + ,1.09545086077369 + ,-7.52630664324327) > #'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/1y3cf1355146266.tab") > > > > proc.time() user system elapsed 0.330 0.091 0.398