wlmmLasso: Weighted GlmmLASSO

Description Usage Arguments Value

View source: R/wlmmLasso.R

Description

GLMM LASSO with weights for each record. This can be used when we have a biased sample.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
wlmmLasso(
  x,
  y,
  yname,
  weights,
  rowid,
  ID = "ID",
  lvars,
  family = gaussian(link = "identity"),
  withlong = FALSE
)

Arguments

x

Data frame or matrix of candidate predictors time-invariant and longitudinal from the full data.

y

Vector of longitudinal outcome of interest.

weights

Sampling weights.

rowid

Observed row id this will match with the length of weights.

lvars

Longitudinal variable names.

family

family object to specify the link function for outcome.

withlong

a logical parameter to decide if the weighted linear mixed model depends on longitudinal predictors.

Value

The GLMM LASSO model under given weights.


SOCR/DataSifterII documentation built on Dec. 15, 2021, 10:29 a.m.