R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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. > x <- c(100.00,102.04,102.51,102.71,103.00,103.39,102.32,103.88,104.65,104.46,104.65,104.36,102.71,104.55,104.76,105.72,106.20,106.50,105.14,106.50,106.69,106.50,106.50,106.39,105.43,107.18,107.37,107.46,107.66,107.37,106.30,107.85,107.95,107.85,107.66,107.76,106.69,108.92,109.22,109.02,108.62,109.02,107.76,109.60,109.80,109.41,109.60,109.60,108.15,110.18,110.27,110.87,111.25,111.15,109.99,111.83,111.73,112.31,112.12,111.73,110.27,112.71,113.38,113.57,113.77,114.15,112.99,115.03,115.03,114.84,114.75,114.84,113.32,115.92,115.84,116.49,116.90,116.99,115.74,117.73,117.17,116.83,117.08,117.23,115.25,117.98,117.97,118.56,118.42,118.51,117.25,119.08,118.85,119.41,120.43,120.87,119.31,122.24,123.14,123.39,124.46,125.33,124.17,125.48,125.35,125.15,124.31,124.14,121.81,124.62,123.93,124.29,124.16,124.02,122.00,124.58,124.06) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > n <- length(x) > sx <- sort(x) > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Variance Reduction Matrix',6,TRUE) > a<-table.row.end(a) > for (bigd in 0:2) { + for (smalld in 0:3) { + mylabel <- 'V(Y[t],d=' + mylabel <- paste(mylabel,as.character(smalld),sep='') + mylabel <- paste(mylabel,',D=',sep='') + mylabel <- paste(mylabel,as.character(bigd),sep='') + mylabel <- paste(mylabel,')',sep='') + a<-table.row.start(a) + a<-table.element(a,mylabel,header=TRUE) + myx <- x + if (smalld > 0) myx <- diff(x,lag=1,differences=smalld) + if (bigd > 0) myx <- diff(myx,lag=par1,differences=bigd) + a<-table.element(a,var(myx)) + a<-table.element(a,'Range',header=TRUE) + a<-table.element(a,max(myx)-min(myx)) + a<-table.element(a,'Trim Var.',header=TRUE) + smyx <- sort(myx) + sn <- length(smyx) + a<-table.element(a,var(smyx[smyx>quantile(smyx,0.05) & smyx a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/1a0cg1260470187.tab") > > > > proc.time() user system elapsed 0.215 0.030 0.241