search for: lmbroadst

Displaying 2 results from an estimated 2 matches for "lmbroadst".

2008 Sep 10
1
bootstrapping - number of items to replace is not a multiple of replacement length
..."datare80" is the name of the data.frame and "woodycover" is the response variable theta <- function(datare80, indices) { d <- datare80[indices, ] # allows boot to select subsample datasets full <- lm(d$woodycover~ ., data= d ) lmbroadst <- step(full, data=d , direction = "both", k=2, trace=0) coefficients(lmbroadst) # return coef. vector } resb <- boot(data = datare80, statistic = theta, R=1000) When I run it, I get these two messages: If I omit the last line "coefficients(lmbroadst)...
2010 Mar 19
0
relaimpo - dummy variable
...related to the function "boot.relimp" (package relaimpo). I have a model with numerical predictors and one dummy (class) variable. I would like to calculate the relative importance of the predictors but I have some problems with the dummy variable. The name of the linear model is "lmbroadst.lc" and the dummy variable is "datacon.landcover_gb" (with 7 levels). I write the command as: boot <- boot.relimp(lmbroadst.lc, b = 500, type = c("lmg", "last", "first"), rank = TRUE, group = datacon.landcover_gb, diff = TRUE, rela = TRUE) The err...