get_estimate_and_se: Get an Estimate Based on Computed Marginal Probabilities

Description Usage Arguments Value

View source: R/get_estimate_and_se.R

Description

Use marginal probabilities to compute either the risk difference, risk ratio, or odds ratio.

Usage

1
get_estimate_and_se(estimate_type, p0, p1, sigma_margins)

Arguments

estimate_type

One of either "risk_difference", "risk_ratio", or "odds_ratio".

p0

The marginal probability corresponding to the case where the main effect equals 0.

p1

The marginal probability corresponding to the case where the main effect equals 1.

sigma_margins

The variance-covariance matrix for the margins p0 and p1.

Value

The requested estimate and its standard error.


jameshenegan/dmsepmlr documentation built on Jan. 1, 2021, 4:27 a.m.