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.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(HLMdiag)
Attaching package: 'HLMdiag'
The following object is masked from 'package:stats':
covratio
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HLMdiag/compare_eb_ls.Rd_%03d_medium.png", width=480, height=480)
> ### Name: compare_eb_ls
> ### Title: Visually comparing shrinkage and LS estimates
> ### Aliases: compare_eb_ls
>
> ### ** Examples
>
> library(lme4)
Loading required package: Matrix
> wages.fm1 <- 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) # note diff. length than rancoef.eb
> compare_eb_ls(eb = rancoef.eb[rownames(rancoef.ols),], ols = rancoef.ols, identify = 0.01)
Warning messages:
1: Removed 38 rows containing non-finite values (stat_smooth).
2: Removed 38 rows containing missing values (geom_point).
>
>
>
>
>
> dev.off()
null device
1
>