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

[support] "UndefVarError: @formula not defined" error when running example listing 8.5 #17

Closed
woshidama323 opened this issue Aug 23, 2019 · 1 comment

Comments

@woshidama323
Copy link

woshidama323 commented Aug 23, 2019

import DataFrames, GLM, PyPlot , Statistics, CSV
data = CSV.read("../data/weightHeight.csv")
lm1 = lm(@formula(Height ~ Weight), data)

when running this piece of code , I found an error with "UndefVarError: @formula not defined"

julia version : 1.1.1

@woshidama323
Copy link
Author

sorry my mistake, it's "using" not "import"

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

1 participant