Just to follow-up: I realized that one may supply linreg a weights
argument, and that the data I had passed the function were not in the
correct format. The weighted multiple linear regression is working now.
Ryan
On Saturday, November 22, 2014 10:46:58 AM UTC-5, Ryan Kyle wrote:
>
> Greetings,
>
> I just started using Julia yesterday, and I'm currently trying to
> translate a bit of my existing R code. I hope the answer isn't too obvious,
> but I'm not sure how to fit a weighted linear regression in Julia -- in R,
> I would try something like
>
> weighted_lm <- lm(Y ~ X1 + X2, weights = my_weights, data = my_data)
>
> Is this currently possible using linreg or GLM? The following thread
> suggests this feature may be still be unavailable:
>
> https://github.com/JuliaStats/GLM.jl/issues/37
>
> Cheers,
> Ryan
>