-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* termnames * use StatsAPI directly, deprecate old termnames * deprecations --------- Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr> Co-authored-by: Dave Kleinschmidt <dave.f.kleinschmidt@gmail.com> Co-authored-by: Alex Arslan <ararslan@comcast.net>
- Loading branch information
1 parent
4a7d159
commit 1632bff
Showing
14 changed files
with
229 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ end | |
term | ||
coefnames | ||
modelcols | ||
termnames | ||
``` | ||
|
||
### Higher-order terms | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@deprecate(termnames(C::AbstractContrasts, levels::AbstractVector, baseind::Integer), | ||
coefnames(C::AbstractContrasts, levels::AbstractVector, baseind::Integer), | ||
false) | ||
|
||
function Base.getproperty(cm::ContrastsMatrix, x::Symbol) | ||
if x === :termnames | ||
Base.depwarn("The `termnames` field of `ConstrastsMatrix` is deprecated; use `coefnames(cm)` instead.", | ||
:ContrastsMatrix) | ||
return coefnames(cm) | ||
else | ||
return getfield(cm, x) | ||
end | ||
end |
Oops, something went wrong.