aggre_mi: Aggregate linear regression results after multiple imputation

Description Usage Arguments Examples

View source: R/aggre_mi.R

Description

Aggregate linear regression results after multiple imputation

Usage

1
aggre_mi(betamap, stderrmat, n = 60, k = 3)

Arguments

betamap

V x m matrix of the coefficient estimates (intercept, txt, covariates etc.) over m imputation

stderrmat

V x m matrix of the standard error (intercept, txt, covariates etc.) over m imputation

n

sample size

k

number of predictors (group + covariates)

Examples

1
2
3
stderrmat=matrix(rnorm(30)^2,10,3)
betamap=matrix(rnorm(30),10,3)
aggre_mi(betamap = betamap, stderrmat = stderrmat)

seonjoo/neurorct documentation built on May 7, 2020, 3:18 a.m.