How can I use a cross validation with logistic regression in R



I would like to know how can I tune the intercepts of an existing model in R with new cross validation data?



You can measure the residual on the test set, type MSE. If too high or too low check your test distribution type t-test as one of them.
Hope this help.


Hello Lesaffrea,

Thanks for the reply but my requirement was a bit different
suppose I have a training set x1,y1 and have a crossvalidation set x2,y2
support I train a logistic regression model as,y1…)
now i want to tune the intercepts of this model using the set x2,y2
is there anyway we can do in R?

Thanks in advance,