[R-sig-ME] binomial fixed-effect p-values by simulation
Douglas Bates
bates at stat.wisc.edu
Tue Aug 26 16:38:10 CEST 2008
On Tue, Aug 26, 2008 at 9:19 AM, Daniel Ezra Johnson
<danielezrajohnson at gmail.com> wrote:
> sorry for the naive question - how can one inspect the code for a
> method rather than a function - like the anova method for lmer?
The simple way is to check the files in the source code package,
because they include the comments as well as the code. The source
code archive is stored at http://r-forge.r-projects.org/projects/lme4
under the SCM tab. A direct URL is
http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/?root=lme4
The most recent version of the source code for essentially everything
associated with mer objects is in the file pkg/R/lmer.R
In general if you want to examine methods you first decide if you have
an S3 method or an S4 method. S3 method names are returned by
methods(anova)
and S4 method names by
showMethods("anova")
To display the code for a particular S4 method use
getMethod("anova", "mer")
More information about the R-sig-mixed-models
mailing list