From 96f6eeba0f93c1271982e75575e303b354a2b412 Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Wed, 30 Jun 2021 02:19:41 +0200 Subject: [PATCH] use StatsModels.formula (#440) --- Project.toml | 4 ++-- src/linpred.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index ef2d2a29..517aeb9f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "GLM" uuid = "38e38edf-8417-5370-95a0-9cbb8c7f171a" -version = "1.5.0" +version = "1.5.1" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" @@ -24,7 +24,7 @@ Reexport = "0.1, 0.2, 1.0" SpecialFunctions = "0.6, 0.7, 0.8, 0.9, 0.10, 1" StatsBase = "0.33.5" StatsFuns = "0.6, 0.7, 0.8, 0.9" -StatsModels = "0.6.22" +StatsModels = "0.6.23" julia = "1" [extras] diff --git a/src/linpred.jl b/src/linpred.jl index c498c7cf..7adecf94 100644 --- a/src/linpred.jl +++ b/src/linpred.jl @@ -233,7 +233,7 @@ response(obj::LinPredModel) = obj.rr.y fitted(m::LinPredModel) = m.rr.mu predict(mm::LinPredModel) = fitted(mm) -formula(obj::LinPredModel) = modelframe(obj).formula +StatsModels.formula(obj::LinPredModel) = modelframe(obj).formula residuals(obj::LinPredModel) = residuals(obj.rr) """