Displaying 2 results from an estimated 2 matches for "validationg".
Did you mean:
validation
2011 Feb 27
2
regularized dfa rda (Klar): problems with predictions
...alysis using rda from the package klaR. However, I have problems to predict the groups from the test/validation sample. The exmaples of the R documantation and some online webpage also do not work. Does anybody know what I have done wrong?
Here my code
# I want to use the first 6 observations for validationg the model, case 7 to 36 are
# used for the trianing:
n_fold<-sample(1:36,36)
testset<- n_fold[1:6]
trainset<- n_fold[-(1:6)]
# regularized DFA with default setting (works fine)
z <- rda(group ~ ., data=test[trainset,])
#Now the prediction:
a<-predict(z,data=test[testset,])$clas...
2011 Feb 28
0
regularized discriminant function analysis using klaR: problems with predictions
...; klaR. However, I have problems to predict the groups from the
> test/validation sample. The exmaples of the R documantation and
> some online webpage also do not work. Does anybody know what I have
> done wrong?
>
> Here my code
> # I want to use the first 6 observations for validationg the model,
> case 7 to 36 are
> # used for the trianing:
> n_fold<-sample(1:36,36)
> testset<- n_fold[1:6]
> trainset<- n_fold[-(1:6)]
> # regularized DFA with default setting (works fine)
> z <- rda(group ~ ., data=test[trainset,])
> #Now the prediction...