on 06-22-2016 10:32 AM
Hello everyone,
I am trying to perform a multinomial ordinal logistic regression on a data set with the MASS R package. I created an R-Component but I don t know how to change my dependent numeric variable into an ordinal factor. Therefore I also created an data transformation R-Component which shows no error when compiled, but the desired transformation is not happening. Here is the code of the R-Component I used.
doFactor <- function(data, x){
pos <- names(data) == as.character(x)
data[,pos] <- as.factor(data[,pos])
out <- data
return(list(result = out) )
}
Any suggestion would be much appreciated.
Best Regards,
Viktor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viktor, is your problem resolved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.