I am evaluating this very easy code snippet and it is evaluating to a world age error.
Pkg.update()
using DataFrames, Plots, GLM, uCSV, ExcelReaders, CovarianceMatrices, CSV, NullableArrays
X=[0.1:0.2:1.1]
Y=[0.1:0.2:1.1]
data=DataFrame()
data[:X]=X
data[:Y]=Y
model_test = fit(LinearModel, @formula(Y ~ X),data)
stderr(model_test, HC1)
Console Output:
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove
WARNING: Method definition 1-element Array{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},1}==(:Base.
Nullable{ S}0.1:0.2:1.1, Base.Nullable{
T}1-element Array{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},1}) in module Base: at nullable.jl:238
overwritten in module NullableArrays at C:\Users\Jiyo\.julia\v0.6\NullableArrays\src\operators.jl:99.
0.1:0.2:1.1
0×0 DataFrames.DataFrame
1-element Array{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},1}:
0.1:0.2:1.1
1-element Array{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},1}:
0.1:0.2:1.1
ERROR: MethodError: no method matching @formula(::Expr)
The applicable method may be too new: running in world age 21842, while current world is 24127.
Closest candidates are:
@formula(::ANY) at C:\Users\Julia_User\.julia\v0.6\DataFrames\src\statsmodels\formula.jl:20 (method too new to be called from this world context.)
ERROR: UndefVarError: model_test not defined
Packages are up to date. Is this a editor/ hardware problem? I am using emacs/ESS.