Dear all,
Is there a way of using the step function on a linear model such that all the
steps are not printed out?
Say I have a matrix X of 50 explanatory variables and a binary response Y.
linear_model-glm(Y~X, data=my_data, family=binomial)
SS-step(linear_model)
This last step produces all
Hi Chysanthi,
check out the randomForest package, with the function randomForest. It has a CV
option. Sorry for not providing you with a lengthier response at the moment but
I'm rather busy on a project. Let me know if you need more help.
Also, to split your data into two parts- the training
you need to include in your code something like:
tree-rpart(result~., data, control=rpart.control(xval=10)).
this xval=10 is 10-fold CV.
Best,
Pierre
De : Chrysanthi A. chrys...@gmail.com
À : r-help@r-project.org
Envoyé le : Dimanche, 12 Avril 2009, 17h26mn
Dear R users,
I have the following problem. Suppose I have the following toy data set:
data
m1 m2 m3 m4 m5 state
[1,] 1 0 1 13 23 2
[2,] 0 1 0 23 94 2
[3,] 1 0 0 45 56 1
[4,] 0 1 0 35 84 2
[5,] 1 1 0 98 37 1
[6,] 1 1 0 68 1 2
where the
4 matches
Mail list logo