strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
603 stars 91 forks source link

Plotting FE model coefficients - standardized within or between units? #838

Closed MariusBug closed 1 year ago

MariusBug commented 2 years ago

Hello,

I am using sjPlot to visualize the standardized coefficients of a two-way fixed effects model, i.e., I am using the options

pred.type = c("fe"), type = "std"

However, I am unsure whether sjPlot considers within-unit (as desired for panel models) or between-unit variation for the standardized coefficients here, which is essential for the interpretation of the plot.

So, which type of variation is used? And if it is between units, is there a way to switch it to within?

Thanks!

strengejacke commented 1 year ago

It's a "simple" standardization of coefficients that is carried out here, see https://easystats.github.io/parameters/articles/standardize_parameters_effsize.html

You can demean your data using datawizard::demean() before you fit the model. See also this vignette.