Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starprep doesn't work with logged dependent variable #399

Open
ghost opened this issue Nov 6, 2022 · 0 comments
Open

starprep doesn't work with logged dependent variable #399

ghost opened this issue Nov 6, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 6, 2022

If you take the example from the documentation and add log() around variables, it works fine with logs around the regressors but will not work with a log around the dependent variable. E.g. lm1 <- lm(mpg ~ log(hp), data = mtcars) works but lm1 <- lm( log(mpg) ~ log(hp), data = mtcars) will give the error

Error in names(object) <- nm : 
  'names' attribute [2] must be the same length as the vector [1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants