modelsummary

Generate table with side-by-side node models of `partykit:mob()` object

有些话、适合烂在心里 提交于 2021-02-18 07:51:08
问题 Let's say I fit a model using partykit:mob() . Afterward, I would like to generate a side-by-side table with all the nodes (including the model fitted using the whole sample). Here I attempted to do it using stargazer() , but other ways are more than welcome. Below an example and attempts to get the table. library("partykit") require("mlbench") ## Pima Indians diabetes data data("PimaIndiansDiabetes", package = "mlbench") ## a simple basic fitting function (of type 1) for a logistic

How to extract the goodness-of-fit statistics from lmer() model for msummary from modelsummary package

给你一囗甜甜゛ 提交于 2021-02-04 21:06:17
问题 I am using lmerTest::lmer() to perform linear regression with repeated measures data. My model contains a fixed effect (factor with 5 levels) and a random effect (subject): library(lmerTest) model_lm <- lmer(likertscore ~ task.f + (1 | subject), data = df_long) I would like to include the total number of observations, the number of subjects, total R^2, and the R^2 of the fixed effects in the regression table which I generate with modelsummary() . I tried to extract these and build a gof_map

How to extract the goodness-of-fit statistics from lmer() model for msummary from modelsummary package

对着背影说爱祢 提交于 2021-02-04 21:02:03
问题 I am using lmerTest::lmer() to perform linear regression with repeated measures data. My model contains a fixed effect (factor with 5 levels) and a random effect (subject): library(lmerTest) model_lm <- lmer(likertscore ~ task.f + (1 | subject), data = df_long) I would like to include the total number of observations, the number of subjects, total R^2, and the R^2 of the fixed effects in the regression table which I generate with modelsummary() . I tried to extract these and build a gof_map