R/syn.constant.R

Defines functions syn.constant

Documented in syn.constant

## File Name: syn.constant.R
## File Version: 0.13


syn.constant <- function(y, x, xp, fixed_values, ...)
{
    #-- catch arguments
    arguments <- c("fixed_values")
    res <- syn_mice_catch_arguments(arguments=arguments)
    vname <- res$vname
    mice_arg_list <- res$mice_arg_list

    #- write imputations
    yimp <- mice_arg_list[["fixed_values"]][[vname]]

    #-- output
    res1 <- list(res=yimp, fit=NULL)
    return(res1)
}

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.