autoplot.profile_lmm: Graphical Display of Profile Likelihood

View source: R/autoplot.R

autoplot.profile_lmmR Documentation

Graphical Display of Profile Likelihood

Description

Graphical representation of the profile likelihood from a linear mixed model

Usage

## S3 method for class 'profile_lmm'
autoplot(
  object,
  type = "logLik",
  quadratic = TRUE,
  ci = FALSE,
  size = c(3, 2, 1, 1),
  linetype = c("dashed", "dashed", "dashed"),
  shape = 19,
  scales = "free",
  nrow = NULL,
  ncol = NULL,
  ...
)

## S3 method for class 'profile_lmm'
plot(x, ...)

Arguments

object, x

an object of class profile_lmm, output of the profile.lmm function.

type

[character] Should the log-likelihood ("logLik") or the ratio to the maximum likelihood ("ratio") be displayed?

quadratic

[logical] Should a quadratic approximation of the likelihood be displayed?

ci

[logical] Should a 95% confidence intervals obtained from the Wald test (vertical lines) and Likelihood ratio test (horizontal line) be displayed?

size

[numeric vector of length 4] Size of the point for the MLE, width of the line representing the likelihood, width of the corresponding quadratic approximation, and width of the line representing the confidence intervals.

linetype

[integer vector of length 2] type of line used to represent the quadratic approximation of the likelihood and the confidence intervals.

shape

[integer, >0] type of point used to represent the MLE.

scales, nrow, ncol

argument passed to ggplot2::facet_wrap.

...

Not used. For compatibility with the generic method.

Value

A list with three elements

  • data.fit: data containing the quadratice approximation of the log-likelihood

  • data.ci: data containing the confidence intervals.

  • plot: ggplot object.

Functions

  • plot(profile_lmm): Display Contour of the log-Likelihood


LMMstar documentation built on Nov. 9, 2023, 1:06 a.m.