Skip to content

Commit

Permalink
Use keyword argument, add it to coeftable
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Nov 20, 2018
1 parent e201c99 commit 13842b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/statmodels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ Return the names of the coefficients.
coefnames(obj::StatisticalModel) = error("coefnames is not defined for $(typeof(obj)).")

"""
coeftable(obj::StatisticalModel)
coeftable(obj::StatisticalModel; level::Real=0.95)
Return a table of class `CoefTable` with coefficients and related statistics.
`level` determines the level for confidence intervals (by default, 95%).
"""
coeftable(obj::StatisticalModel) = error("coeftable is not defined for $(typeof(obj)).")

"""
confint(obj::StatisticalModel, level::Real=0.95)
confint(obj::StatisticalModel; level::Real=0.95)
Compute confidence intervals for coefficients.
Compute confidence intervals for coefficients, with confidence level `level` (by default 95%).
"""
confint(obj::StatisticalModel, level::Real=0.95) = error("confint is not defined for $(typeof(obj)).")
confint(obj::StatisticalModel) = error("confint is not defined for $(typeof(obj)).")

"""
deviance(obj::StatisticalModel)
Expand Down

0 comments on commit 13842b4

Please sign in to comment.