I would like to ask how can i use the train data subset to fit a model, and test data to test it
i already split the data into data.train and data.test, but i got an error invalid list type when using the lda function
data.lda <- lda(g ~ ., data = mydata,subset = data.train), where the g is the group column in mydata.
Can anyone help me ?
By the way, if you are after specific help, please provide a reproducible example:
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.
Thanks i will check it out first