search for: formulanam

Displaying 1 result from an estimated 1 matches for "formulanam".

Did you mean: formulaname
2004 Sep 30
1
expand.model.frame gives "object not found"
...ome data using glm(), from within a function: formula = as.formula(paste(depvarname, "~", rhs), env=globalenv()) return (glm(formula, family=binomial(link=logit))) I have now come back to the formula and want to add some more variables to it. So I do: expand.model.frame(formulaname, ~ new_variable) but I get the response Error in eval(expr, envir, enclos) : Object "foreignaid.dummy" not found where foreignaid.dummy is my dependent variable. However, foreignaid.dummy is clearly visible in the global environment: > ls(pat="foreignaid.dummy", envir=gl...