m2_vary: Variable margin overall point estimate and variance...

View source: R/m2_vary.R

m2_varyR Documentation

Variable margin overall point estimate and variance derivation

Description

Calculates overall point estimates and its variance using a vector of margins

Usage

m2_vary(lambda, m1, pc, pt, pd_var, nc, nt, method = c("wald", "fm"))

Arguments

lambda

numeric, fraction of control treatment effect preservation

m1

numeric, statistical margin

pc

numeric, estimated proportion of events in group 'c'

pt

numeric, estimated proportion of events in group 't'

pd_var

numeric, estimated variance for difference in propotions between groups 'c' and 't'

nc

numeric, number of observations in group 'c'

nt

numeric, number of observations in group 't'

method

chararcter with the followin two options: "wald", "fm"

Details

DETAILS

Value

list

See Also

cor map,set_names p_rmle

Examples

lambda <- c(0.60, 0.63, 0.65)
m2_vary(lambda, m1 = 0.23, pc = 0.8, pt = 0.7, pd_var = 0.004, nc = 100, nt = 100, method = 'wald')

yuliasidi/m2imp documentation built on Jan. 16, 2024, 3:59 a.m.