Displaying 3 results from an estimated 3 matches for "preio".
Did you mean:
reio
2010 Jan 07
1
Drop a part of an array\list\vector?
I did have a verbose description of why but rather then make everyone's eyes
bleed with useless details I ask the following :)
To make a long story short: How can I make newmcReg[[i]]["PreIO308"] go
away in the following list... er vector... no wait array.... dataframe....
awww crap...
summary(newmcReg[[i]])
UNITBUILD UNITDB ITBUILD ITDB
Mode :logical Mode :logical Mode :logical Mode :logical
FALSE:249 FALSE:249 FALSE:249 FAL...
2010 Jan 26
0
Trouble Highlighting outliers on Time Series Plot
...commented out.
############################################################
tsSourceDiag <- stl(tsSource,s.window="per", robust=TRUE)
#
tsSourceIO <- which(tsSourceDiag $ weights < 1e-8)
#
# This is how to append run-time regessors
for(z in tsSourceIO) {
tmpname <-paste("PreIO",z,sep="")
#COPY EOM REGRESSOR AS A TEMPLATE
sh2[[tmpname]] <- sh2[["EOM"]]
#SET IT ALL TO 0
sh2[[tmpname]][]<-FALSE
#SET The Proper Indice to TRUE
sh2[[tmpname]][z]<- TRUE
}
Ok so I have a time series tsSource. I yank out the index of each
tsSourceDiag and appendi...
2010 Jan 12
0
[Solved][Code Snippets] Dropping Empty Regressors
...any are found
############################################################
tsSourceDiag <- stl(tsSource,s.window="per", robust=TRUE)
#
tsSourceIO <- which(tsSourceDiag $ weights < 1e-8)
#
# This is how to append run-time regessors
for(z in tsSourceIO) {
tmpname <-paste("PreIO",z,sep="")
#COPY EOM AS A TEMPLATE
sh2[[tmpname]] <- sh2[["EOM"]]
#SET IT ALL TO 0
sh2[[tmpname]][]<-FALSE
#SET The Proper Indice to TRUE
sh2[[tmpname]][z]<- TRUE
}
So to get rid of them (those empty useless regressors) I cooked up this:
########################...