- {tidymodels} partial compatibility: method
extract_eq()
added for model_fit objects of the {parsnip} package, and for workflow objects of the {workflows} package, see #237. Previously, the model object had to be extracted usingparsnip::fit()
before usingextract_eq()
. This is not necessary any more, but still valid (no breaking changes). Note thatextract_eq()
cannot handle yet all {tidymodels}. For instance, it can handlereg_linear()
, but cannot handlereg_linear() |> set_engine("stan")
. There is currently no plan to support all {tidymodels} models, but pull requests will be considered if you find and solve a problematic case by yourself.
- Vignette 'intro-equatiomatic' renamed 'equatiomatic' to enable a "Getting Started" entry in the pkgdown site.
- Documentation was cleaned up. In particular, methods for internal generics are
not exported any more. All methods for
extract_eq()
are now properly documented in theextract_eq()
help page.
- New maintainer (Philippe Grosjean [email protected]).
- Remotes to yonicd/texPreview eliminated because a suitable version is on CRAN.
- Respect of the arguments of the generic functions for
add_greek.forecast_ARIMA
andadd_coefs.forecast_ARIMA
(first argumentside=
is renamedrhs=
).
- Minor bug fix related to lifecycle badges
- New license: CC-BY
- Bug fix: If names overlap, prior version had an error with the ordering and construction of the coefficients.
- Bug fix: Prior versions did not escape characters in multilevel models when
declaring the grouping factor (e.g.,
for census_division l = 1
is now rendered asfor census\_division l = 1
). - Feature addition: added
se_subscripts
argument, which allows the standard error for each coefficient to be included in parentheses below the coefficient whense_subscripts = TRUE
. This is supported forlm
andglm
models.
- Export new
renderEq()
andeqOutput()
functions for working with equatiomatic with shiny. - Specific parts of the equation can now be colored with the new
greek_colors
,subscript_colors
,var_colors
andvar_subscript_colors
arguments. - Includes new
swap_var_names
andswap_subscript_names
arguments to change the names of the variables or subscripts in the rendered equation - A new vignette documents the usage of colors and name swapping.
- Now accommodates
lme4::glmer()
models. - Include new
return_variances
argument, which allows users to optionally return the variance/covariances inlme4::lmer()
andlme4::glmer()
models - Added new
font_size
argument, which takes any LaTeX font size (see here) - Added new
label
argument, which allows for cross-referencing equation in-text with PDF outputs. - Now includes rendering of
poly()
,log()
, andexp()
functions for in-line equations, and will drop theI()
for generic in-line equation operation - Bug fix related to categorical variables and level parsing for
lme4::lmer()
and andlme4::glmer()
models - Minor bug fix related to indexing of coefficients for
lme4::lmer()
models - Minor bug fix related to very large models, which would not render properly before
lme4::lmer()
models now allow for in-line alterations to the code, e.g.,I(n >5)
.- Minor bug fix related to SARIMA models
-
New models: This is the first version to support
lme4::lmer()
models andforecast::Arima()
models. -
New vignettes for each of the new models supported.
-
New vignette showing how to use the package with plotting
-
Switched the testing framework to use snapshot testing
-
Uses new print method so users no longer have to specify
results = "asis"
in the R Markdown chunk option -
Fixed error in rendering logistic/probit regression equations by removing the epsilon (error term) at the end of the left-hand side
-
The epsilon (error term) is no longer shown when rendering the fitted model equation, i.e.
use_coefs = TRUE
, forlm
models. The hat sign is also added to the response variable.
-
Initial CRAN Release
-
Extracts equations for
lm
models -
Extracts equations for
glm
models withfamily = binomial(link = "logit")
orfamily = binomial(link = "probit")
-
Extracts equations form ordered regression models using
MASS::polr
orordered::clm
for logit and probit link functions -
glm
models have an optionalshow_distribution
argument to show the distributional assumptions -
All equations can be displayed using Greek notation or the estimated coefficients
-
The
raw_tex
code can be used to supply custom TeX code for the intercept or the coefficients, through theintercept
andgreek
arguments respectively -
Long equations can be wrapped to multiple lines with the optional
wrap
argument. The length of the wrapping is controlled byterms_per_line
. -
Added a
NEWS.md
file to track subsequent changes to the package.