R/mice_ml_lmer_define_predicted_umat.R

Defines functions mice_ml_lmer_define_predicted_umat

## File Name: mice_ml_lmer_define_predicted_umat.R
## File Version: 0.02

mice_ml_lmer_define_predicted_umat <- function(y, NL, levels_id)
{
    predicted_umat <- matrix(0, nrow=length(y), ncol=NL+2)
    colnames(predicted_umat) <- paste0("u_",1:(NL+2))
    colnames(predicted_umat)[1:NL] <- levels_id
    return(predicted_umat)
}

Try the miceadds package in your browser

Any scripts or data that you put into this service are public.

miceadds documentation built on Jan. 7, 2023, 1:09 a.m.