plot.ggmix_fit: Plot Method for 'ggmix_fit' object

Description Usage Arguments Details Value

View source: R/plot.R

Description

Produces a coefficient profile plot of the coefficient paths for a fitted ggmix_fit object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## S3 method for class 'ggmix_fit'
plot(x, ..., xvar = c("norm", "lambda", "dev"), label = FALSE, sign.lambda = 1)

plotCoef(
  beta,
  norm,
  lambda,
  df,
  dev,
  label = FALSE,
  xvar = c("norm", "lambda", "dev"),
  xlab = iname,
  ylab = "Coefficients",
  ...
)

Arguments

x

a ggmix_fit object

...

other graphical parameters passed to plot

xvar

What is on the X-axis. "norm" plots against the L1-norm of the coefficients, "lambda" against the log-lambda sequence, and "dev" against the percent deviance explained.

label

If TRUE, label the curves with variable sequence numbers.

sign.lambda

Either plot against log(lambda) (default) or its negative if sign.lambda=-1

beta

fixed effects estimates

norm

l1 norm of fixed effect estimates. if missing, (default) this function will calculate it

lambda

sequence of tuning parameters

df

number of non-zero fixed + random effects

dev

percent deviance

xlab

x-axis label

ylab

y-axis label

Details

A coefficient profile plot is produced

Value

A plot is produced and nothing is returned


ggmix documentation built on April 13, 2021, 9:06 a.m.