Displaying 1 result from an estimated 1 matches for "plotell".
2011 Mar 01
1
Problem on flexmix when trying to apply signature developed in one model to a new sample
...tion of the tested cases using two variables with the function of flexmix:
After importing the database and creating
a matrix:
BM<-cbind(Data$var1,Data$var2)
I see that the best model has 2 groups and
use:
ex2
<- flexmix(BM~1, k=2, model=FLXMCmvnorm(diagonal=FALSE))
print(ex2)
plotEll(ex2, BM)
Then I want to test to which group one
subset of patients belongs, so I import a smaller sample of the previous data:
BM2<-data.frame (Data2$var1,Data2$var2)
However when I test the results I get are
from the complete training sample I used in ex2 and not from the new sample
BM...