Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Problem using GLM

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles