Displaying 2 results from an estimated 2 matches for "myind".
Did you mean:
mind
2010 Feb 03
1
plm package index
Dear all,
i just wonder if there´s a way to use a two column time index field in plm package.
the manual says the following concerning data indexing:
a character vector of length two containing the names of the individual and the time
index,
What would y´all do with a quarterly dataset that contains one column for the period and one for the year. Do I have to convert it to one single date
2012 Apr 06
0
resampling syntax for caret package
...uentially: no parallel backend registered
When I change the variable names, caret gives me predictions as a
numeric value corresponding to the ordered level. Have I missed
something here?
Thanks,
Juliet
# start example
library(caret)
# to obtain data
library(rda)
data(colon)
# add colnames
myind <- seq(1:ncol(colon.x))
mynames <- paste("A",myind,sep="")
colnames(colon.x) <- mynames
outcome <- factor(as.character(colon.y),levels=c("1","2"))
cv_index <- 1:length(outcome)
predictions <- rep(-1,length(cv_index))
pamGrid <- seq(0....