Question: (Closed) Cross Validation In R
0
gravatar for Mery
9.3 years ago by
Mery0
Mery0 wrote:

I want to perform regression methods such as LDA, QDA, logistic and bayesian model averaging on the Australian data in R. How can I do cross validation in R for this data ?

• 3.7k views
ADD COMMENTlink modified 9.3 years ago by Vladimir Chupakhin520 • written 9.3 years ago by Mery0
1

Do people earn points for closing questions? Cross-validation is an important topic in bioinformatics and thus questions and answers with content on cross validation are relevant to bioinformatics. The question may be asked poorly, but the answerers could fill in the gap if desired, and the questioner could be prompted for better question posing. I don't understand how cross-validation is off-topic for bioinformatics.

ADD REPLYlink written 9.3 years ago by seidel7.2k

Sorry, "the Australian data"? I assume you mean the sample dataset, data(austres). Sounds like you're learning R and this is not a bioinformatics question.

ADD REPLYlink written 9.3 years ago by Neilfws49k
2
gravatar for Chris
9.3 years ago by
Chris1.6k
Munich
Chris1.6k wrote:

You split up your dataset into non-overlapping folds, e.g. randomly or stratified. This should be easily doable with R. Then you train your model on one part and test on the rest. In e.g. 10-fold CV you essentially rotate your folds, i.e. 9/10 of the set is used as train- the rest 1/10 as test set. Obviously this could be done 10 times.

ADD COMMENTlink written 9.3 years ago by Chris1.6k
2
gravatar for Vladimir Chupakhin
9.3 years ago by
Toledo, Spain
Vladimir Chupakhin520 wrote:

try caret library for R - it's include crossvalidation options by default and coupled with different learning algorithms

ADD COMMENTlink written 9.3 years ago by Vladimir Chupakhin520
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1366 users visited in the last hour
_