R/miceadds_weighted_colMeans.R

Defines functions miceadds_weighted_colMeans

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

miceadds_weighted_colMeans <- function(x, imputationWeights)
{
    cx <- colSums(x*imputationWeights) / sum(imputationWeights)
    return(cx)
}

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.