search for: modelerror

Displaying 3 results from an estimated 3 matches for "modelerror".

Did you mean: mode_error
2010 Dec 04
2
Problem storing lm() model in a list
...im.mult <- 0 if (add.dim) { dim.mult = 1 } bestD <- 1 bestError <- 1 loss <- 1 lm.models <- vector("list",maxd) for (d in 1:maxd) { lm.mod <- lm(y ~ 0 + poly(x,d,raw=T)) lm.models[[d]] <- lm.mod loss[d] <- modelError(lm.mod,data.frame(x),y)+d*dim.mult if (d == 1){ bestError <- loss[d] } if (loss[d] < bestError) { bestError <- loss[d] bestD <- d } # print(loss[d]) } list(loss=loss,models=lm.models,best=c(bestD)) } mo...
2011 Mar 31
1
Effects - plot the marginal effect
...y1, mreg01))Warning messages:1: In a90$enpres:a90$proximity1 : numerical expression has 82 elements: only the first used2: In a90$enpres:a90$proximity1 : numerical expression has 82 elements: only the first used3: In analyze.model(term, mod, xlevels, default.levels) : 0 does not appear in the modelError in plot(effect(a90$enpres:a90$proximity1, mreg01)) : error in evaluating the argument 'x' in selecting a method for function 'plot' > Thanks in advance. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: graph.png Type: image/png Size: 3...
2012 Oct 15
0
Error message with the effects package - 'Subscript out of bounds'
...+ currently_insured2 + zipcode2, data=dat, family=binomial(link="logit")) > plot(effect("our_bid*home_owner2", mod2), rescale.axis=FALSE, multiline=TRUE)Warning message:In analyze.model(term, mod, xlevels, default.levels) : our_bid:home_owner2 does not appear in the modelError in plot(effect("our_bid*home_owner2", mod2), rescale.axis = FALSE, : error in evaluating the argument 'x' in selecting a method for function 'plot': Error in apply(mod.matrix[, components], 1, prod) : subscript out of bounds Here's info on my data and my glm co...