Hello,
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 ?
Thanks 