convts | R Documentation |
mixest
and tvpreg
Objects.This function renames rows of selected outcomes stored in mixest
and tvpreg
objects. It can be useful in generating better looking plots.
convts(x,ind=NULL, ...)
x |
object of class |
ind |
optional, |
... |
optional, alternatively, instead of providing |
object of the same class as x
but with renamed rownames of selected outcomes
data(oil)
t1 <- tvp.reg(y=oil[,1,drop=FALSE],x=oil[,-1,drop=FALSE],lambda=0.99,V=100,W=100)
plot(t1)
t1a <- convts(x=t1,from=as.Date("1990-02-15"),by="month",length.out=nrow(oil[,1,drop=FALSE]))
plot(t1a)
m1 <- mixest1(y=oil[,1,drop=FALSE],x=oil[,-1,drop=FALSE],ftype=1,V=100,W=100)
plot(m1)
ind <- as.character(seq(from=as.Date("1990-02-15"),by="month",length.out=nrow(oil[,1,drop=FALSE])))
m1a <- convts(x=m1,ind=ind)
plot(m1a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.