R version 2.6.0 (2007-10-03) Copyright (C) 2007 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(9.1,11.2,7.7,7.9,-2.4,-2.8,-4.9,2.3,7.9,6.7,6,3.8,4.7,6.4,9.3,11,8.5,8.8,10,16.8,11.6,11.5,6,2.9,2.1,2.7,11.2,7.3,11.6,4.6,6,-0.5,1.8,3.7,8.3,8.3,12,7.8,5.3,1,-0.3,2.4,2.7,5.7,3.5,0.6,5.2,2.9,1,-5.5,-7.1,-7.9,-8.8,-7,-5.5,-7.3,-7.5,-3.5,2.2,3.1,4.1,4.2,6,5.5,5.1,5.5,1,1.5,1.2,1.7,-8.6,-11.2,-12.7,-3.1,-1,0.3,-2.9,-2.2,3.2,5.9,13.3,7.3,6.9,8.3,11.8,9.2,5.8,8.8,14.6,28.1,19.7,16.5,-5.3,-2.4,1.9,1.6,-0.1,-1.9,3.4,3.3,3.3,-9.8,-4.6,-6.1,10.6,8.8,10.7,11.7) > 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) > 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/10yez1196509866.tab") > > > > proc.time() user system elapsed 0.480 0.033 0.537