predict_glmmLasso {autoMrP} | R Documentation |
Predicts on newdata from glmmLasso objects
Description
glmmLasso()
predicts on newdata objects from a glmmLasso object.
Usage
predict_glmmLasso(census, m, L1.x, lasso.L2.x, L2.unit, L2.reg)
Arguments
census |
Census data. A |
m |
A |
L1.x |
Individual-level covariates. A character vector containing the
column names of the individual-level variables in |
lasso.L2.x |
Lasso context-level covariates. A character vector
containing the column names of the context-level variables in
|
L2.unit |
Geographic unit. A character scalar containing the column
name of the geographic unit in |
L2.reg |
Geographic region. A character scalar containing the column
name of the geographic region in |
Value
Returns a numeric vector of predictions from a glmmLasso()
object.