Hi, there:
I made a function to do k-fold cross-validation as
below. Basically whenever I call cv(test) for example,
an error message like:
20Fold 1
Error in model.frame(formula, rownames, variables,
varnames, extras, extranames, :
variable lengths differ
please help.
My test
From: Weiwei Shi
Hi, there:
I made a function to do k-fold cross-validation as
below. Basically whenever I call cv(test) for example,
an error message like:
20Fold 1
Error in model.frame(formula, rownames, variables,
varnames, extras, extranames, :
variable lengths differ