Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added warning on weighted regression
  • Loading branch information
mkborregaard committed Jan 5, 2017
1 parent dbd92e6 commit d6fb442
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lm.jl
Expand Up @@ -169,6 +169,7 @@ predicted relationship, and `:predint` delimiting estimated bounds for new data
function predict(mm::LinearModel, newx::AbstractMatrix, interval_type::Symbol, level::Real = 0.95)
retmean = newx * coef(mm)
interval_type == :confint || error("only :confint is currently implemented") #:predint will be implemented
length(mm.rr.wts) == 0 || error("prediction with confidence intervals not yet implemented for weighted regression")

R = cholfact!(mm.pp)[:U] #get the R matrix from the QR factorization
residvar = (ones(size(newx,2),1) * deviance(mm)/dof_residual(mm))
Expand Down

0 comments on commit d6fb442

Please sign in to comment.