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 May 29, 2024, 11:05 a.m.