@@ -50,7 +50,6 @@ standardize_info.default <- function(model,
5050 insight :: find_parameters(model , effects = " fixed" , flatten = TRUE , ... )
5151 }
5252 types <- parameters_type(model )
53- # model_matrix <- as.data.frame(stats::model.matrix(model))
5453 model_matrix <- as.data.frame(insight :: get_modelmatrix(model ))
5554 model_data <- insight :: get_data(model , source = " mf" , verbose = FALSE )
5655 wgts <- insight :: get_weights(model , remove_na = TRUE )
@@ -323,9 +322,12 @@ standardize_info.default <- function(model,
323322 if (info $ is_linear ) {
324323 if (inherits(model , c(" gls" , " lme" ))) {
325324 response <- insight :: get_response(model )
325+ } else if (inherits(model , " fixest" )) {
326+ response <- stats :: model.matrix(model , type = " lhs" )
326327 } else {
327328 response <- stats :: model.frame(model )[[1 ]]
328329 }
330+
329331 means <- deviations <- rep(NA_real_ , length = length(names(model_matrix )))
330332 for (i in seq_along(names(model_matrix ))) {
331333 variable <- names(model_matrix )[i ]
@@ -367,6 +369,8 @@ standardize_info.default <- function(model,
367369.std_info_response_basic <- function (model , info , params , robust = FALSE , w = NULL , ... ) {
368370 if (inherits(model , c(" gls" , " lme" ))) {
369371 response <- insight :: get_response(model )
372+ } else if (inherits(model , " fixest" )) {
373+ response <- stats :: model.matrix(model , type = " lhs" )
370374 } else {
371375 response <- stats :: model.frame(model )[[1 ]]
372376 }
0 commit comments