Description Usage Arguments Author(s) Examples
View source: R/group_level_residual_functions.R
This function creates a plot (using qplot()
) where the shrinkage
estimate appears on the horizontal axis and the LS estimate appears on the
vertical axis.
1 | compare_eb_ls(eb, ols, identify = FALSE, silent = TRUE, ...)
|
eb |
a matrix of random effects |
ols |
a matrix of the OLS estimates found using |
identify |
the percentage of points to identify as unusual,
|
silent |
logical: should the list of data frames used to make the plots be suppressed. |
... |
other arguments to be passed to |
Adam Loy loyad01@gmail.com
1 2 3 4 5 | wages.fm1 <- lme4::lmer(lnw ~ exper + (exper | id), data = wages)
wages.sepLM <- adjust_lmList(lnw ~ exper | id, data = wages)
rancoef.eb <- coef(wages.fm1)$id
rancoef.ols <- coef(wages.sepLM)
compare_eb_ls(eb = rancoef.eb, ols = rancoef.ols, identify = 0.01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.