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

# S3 method for 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

Value

A plot is produced and nothing is returned

Details

A coefficient profile plot is produced