Open MegsBruce opened 2 years ago
Try this:
# divide income by 10,000
happy <- dat$happiness
income <- dat$income / 10000
income.sq <- income*income
m <- lm( happy ~ income + income.sq )
stargazer( m, type="html",
omit.stat = c("rsq","f","ser"),
notes.label = "Standard errors in parentheses" )
Nope, still getting the same message
For question one, I'm putting in the chunk of code/trying to run the regression model but I keep getting this error message:
"Error in eval(predvars, data, env) : object 'y' not found"
Help?