R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(263151 + ,259372 + ,251960 + ,246936 + ,240570 + ,238382 + ,261156 + ,272095 + ,272017 + ,271876 + ,266863 + ,270878 + ,274212 + ,265841 + ,255968 + ,250606 + ,240470 + ,232662 + ,256235 + ,266169 + ,261751 + ,255914 + ,252397 + ,254227 + ,255699 + ,252285 + ,247132 + ,242785 + ,235667 + ,234952 + ,255179 + ,263727 + ,261315 + ,252049 + ,245914 + ,248289 + ,246790 + ,243978 + ,238108 + ,231776 + ,224585 + ,219058 + ,240429 + ,254569 + ,249074 + ,237521 + ,230384 + ,232521 + ,234611 + ,230592 + ,225144 + ,218143 + ,212434 + ,208676 + ,229328 + ,242148 + ,233916 + ,225628 + ,217837 + ,217786 + ,218413 + ,213261 + ,204094 + ,201484 + ,194600 + ,191325 + ,211261 + ,226293 + ,219734 + ,214591 + ,205348 + ,203496 + ,208155 + ,205010 + ,200290 + ,198088 + ,195186 + ,191395 + ,213768 + ,225780 + ,230579 + ,229261 + ,216228 + ,216713 + ,220206 + ,220115 + ,218444 + ,214912 + ,210705 + ,209673 + ,237041 + ,242081 + ,241878 + ,242621 + ,238545 + ,240337 + ,244752 + ,244576 + ,241572 + ,240541 + ,236089 + ,236997 + ,264579 + ,270349 + ,269645 + ,267037 + ,258113 + ,262813 + ,267413 + ,267366 + ,264777 + ,258863 + ,254844 + ,254868 + ,277267 + ,285351 + ,286602 + ,283042 + ,276687 + ,277915 + ,277128 + ,277103 + ,275037 + ,270150 + ,267140 + ,264993 + ,287259 + ,291186 + ,292300 + ,288186 + ,281477 + ,282656 + ,280190 + ,280408 + ,276836 + ,275216 + ,274352 + ,271311 + ,289802 + ,290726 + ,292300 + ,278506 + ,269826 + ,265861 + ,269034 + ,264176 + ,255198 + ,253353 + ,246057 + ,235372 + ,258556 + ,260993 + ,254663 + ,250643 + ,243422 + ,247105 + ,248541 + ,245039 + ,237080 + ,237085 + ,225554 + ,226839 + ,247934 + ,248333 + ,246969 + ,245098) > 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/1iams1228249788.tab") > > > > proc.time() user system elapsed 0.223 0.036 0.255