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

load error with @formula #11

Closed
MooersLab opened this issue Oct 13, 2020 · 3 comments
Closed

load error with @formula #11

MooersLab opened this issue Oct 13, 2020 · 3 comments

Comments

@MooersLab
Copy link

MooersLab commented Oct 13, 2020

PlackettBurman(@formula(y ~ x1 + x2 + x3 + x4))

LoadError: UndefVarError: @formula not defined
in expression starting at In[24]:1

Stacktrace:
[1] top-level scope
[2] include_string(::Function, ::Module, ::String, ::String) at ./loading.jl:1091
[3] execute_code(::String, ::String) at /Users/blaine/.julia/packages/IJulia/rWZ9e/src/execute_request.jl:27
[4] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /Users/blaine/.julia/packages/IJulia/rWZ9e/src/execute_request.jl:86
[5] #invokelatest#1 at ./essentials.jl:710 [inlined]
[6] invokelatest at ./essentials.jl:709 [inlined]
[7] eventloop(::ZMQ.Socket) at /Users/blaine/.julia/packages/IJulia/rWZ9e/src/eventloop.jl:8
[8] (::IJulia.var"#15#18")() at ./task.jl:356

Using Julia 1.5.2

@MooersLab
Copy link
Author

ExperimentalDesign.jl uses @formula from StatsModels.
I updated Julia's packages.
I ran 'build' in the package manager.
I tested @formula in StatsModels.
It worked.
I reloaded ExperimentalDesign.jl.
@formula now works in ExperimentalDesign.jl.

@phrb
Copy link
Owner

phrb commented Oct 14, 2020

Sorry for the delayed response, I'm glad you've found a fix quickly. I should improve documentation to prevent this, or re-export StatsModels in this package.

For more on how to perform screening with Plackett-Burman designs, check this example.

@MooersLab
Copy link
Author

MooersLab commented Oct 15, 2020 via email

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

2 participants