R Leaps Package: Regsubsets - coef "Reordr" Fortran error -
i'm using r leaps
package obtain fit data: (my dataframe df
contains y
variable , 41 predictor variables)
require(leaps) n=3 regsubsets(y ~ ., data = df, nbest=1, nvmax=n+1,force.in="x", method = 'exhaustive')-> regfit coef(regfit,id = n)
when run code more once (the first time works fine) following error when run coef command:
error in .fortran("reordr", np = as.integer(object$np), nrbar = as.integer(object$nrbar), : "reordr" not resolved current namespace (leaps)
any why happening appreciated. a.
i had build package source inserting (package = 'leaps') argument reordr function in leaps.r file. works fine every time.
the solution related to:
r: error message --- package error: "functionname" not resolved current namespace
Comments
Post a Comment