Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: parameters
Title: Processing of Model Parameters
Version: 0.28.2.9
Version: 0.28.2.10
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# parameters (devel)

* fixed bug in `standardize_info(<fixest>)` that was preventing
`standardise_parameters()` from working for `fixest` models.

* `equivalence_test()` gets methods for objects from the *modelbased* package.

* Improved support for objects from package *survey*.
Expand Down
14 changes: 3 additions & 11 deletions R/standardize_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ standardize_info.default <- function(model,
insight::find_parameters(model, effects = "fixed", flatten = TRUE, ...)
}
types <- parameters_type(model)
# model_matrix <- as.data.frame(stats::model.matrix(model))
model_matrix <- as.data.frame(insight::get_modelmatrix(model))
model_data <- insight::get_data(model, source = "mf", verbose = FALSE)
wgts <- insight::get_weights(model, remove_na = TRUE)
Expand Down Expand Up @@ -321,11 +320,8 @@ standardize_info.default <- function(model,
#' @keywords internal
.std_info_response_smart <- function(model, info, data, model_matrix, types, robust = FALSE, w = NULL, ...) {
if (info$is_linear) {
if (inherits(model, c("gls", "lme"))) {
response <- insight::get_response(model)
} else {
response <- stats::model.frame(model)[[1]]
}
response <- insight::get_response(model)

means <- deviations <- rep(NA_real_, length = length(names(model_matrix)))
for (i in seq_along(names(model_matrix))) {
variable <- names(model_matrix)[i]
Expand Down Expand Up @@ -365,11 +361,7 @@ standardize_info.default <- function(model,

#' @keywords internal
.std_info_response_basic <- function(model, info, params, robust = FALSE, w = NULL, ...) {
if (inherits(model, c("gls", "lme"))) {
response <- insight::get_response(model)
} else {
response <- stats::model.frame(model)[[1]]
}
response <- insight::get_response(model)

if (info$is_linear) {
if (robust) {
Expand Down
Loading