The following is throwing an error:
using DataFrames, GLM
data = DataFrame(X=1:1:length(event[1]), Y=event[1])
ols = lm(@formula(Y ~ X), data)
The reason appears to be to do with the type of data I define as X and Y:
typeof(X) StepRange{Int64,Int64}
typeof(Y) Vector{Any}
What am I missing?
7 posts - 4 participants