Skip to content

Undefined variable error: categorical not defined #4

@grantmcdermott

Description

@grantmcdermott

Possibly an upstream error, but I'm unable to run the example from the README because of an undefined (categorical) variable problem. Reprex below. Any ideas?

FWIW I'm running the latest version of FixedEffectModels.jl (v0.9.0) in Julia itself.

library(FixedEffectjlr)
#> Loading required package: JuliaCall
julia <- JuliaCall::julia_setup()
#> Julia version 1.2.0 at location /opt/julias/julia-1.2.0/bin will be used.
#> Loading setup script for JuliaCall...
#> Finish loading setup script for JuliaCall.

df <- Ecdat::Cigar
reg_res <- FixedEffect(df,
                       lhs = "sales", rhs = "ndi",
                       fe      = "state + year",
                       weights = "pop",
                       vcov    = "cluster(state)")
#> Error: Error happens in Julia.
#> UndefVarError: categorical not defined
#> Stacktrace:
#>  [1] top-level scope at none:0
#>  [2] eval(::Module, ::Any) at ./boot.jl:330
#>  [3] eval_string(::String) at /usr/lib/R/library/JuliaCall/julia/setup.jl:195
#>  [4] docall(::Ptr{Nothing}) at /usr/lib/R/library/JuliaCall/julia/setup.jl:168

Created on 2019-10-03 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions