Open RobertGregg opened 5 months ago
using GLM using DataFrames df1 = DataFrame(y = rand(10)) df2 = DataFrame(y = rand(10)) model = lm(@formula(y~1),df1) y = predict(model,df2)
Gives the following error: ERROR: ArgumentError: collection must be non-empty
ERROR: ArgumentError: collection must be non-empty
I realize this is a weird edge case, but I think it should just return mean(df1.y) for each prediction.
mean(df1.y)
Gives the following error:
ERROR: ArgumentError: collection must be non-empty
I realize this is a weird edge case, but I think it should just return
mean(df1.y)
for each prediction.