|
|||||||||||||||
Valuea list with the following compontents:
Author(s)Adam Loy loyad01@gmail.com ReferencesChristensen, R., Pearson, L.M., and Johnson, W. (1992) Case-Deletion Diagnostics for Mixed Models, Technometrics, 34, 38 – 45. Schabenberger, O. (2004) Mixed Model Influence Diagnostics, in Proceedings of the Twenty-Ninth SAS Users Group International Conference, SAS Users Group International. Exampleslibrary(lme4) data(sleepstudy, package = 'lme4') fm <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy) # Deleting every Subject fmDel <- case_delete(model = fm, group = "Subject", type = "both") # Deleting only subject 308 del308 <- case_delete(model = fm, group = "Subject", type = "both", delete = 308) # Deleting a subset of subjects delSubset <- case_delete(model = fm, group = "Subject", type = "both", delete = 308:310) ResultsR 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/case_delete.mer.Rd_%03d_medium.png", width=480, height=480) > ### Name: case_delete.default > ### Title: Case Deletion for 'mer'/'lmerMod' objects > ### Aliases: case_delete case_delete.default case_delete.lmerMod > ### case_delete.mer > ### Keywords: models regression > > ### ** Examples > > library(lme4) Loading required package: Matrix > data(sleepstudy, package = 'lme4') > fm <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy) > > # Deleting every Subject > fmDel <- case_delete(model = fm, group = "Subject", type = "both") > > # Deleting only subject 308 > del308 <- case_delete(model = fm, group = "Subject", type = "both", delete = 308) > > # Deleting a subset of subjects > delSubset <- case_delete(model = fm, group = "Subject", type = "both", delete = 308:310) > > > > > > dev.off() null device 1 > |
|||||||||||||||
|