calcAlpha0: Calculate the needed value of alpha_0_outcome or...

Description Usage Arguments Value

View source: R/calcAlpha0.R

Description

The form of the treatment and outcome regressions require values of alpha_0_outcome or alpha_0_treat. In order to achieve a desired outcome or treatment rate with a given covariate distribution, this value must be calculated. It is not analytically solvable and thus it is approximated using a simulation and bisection method.

Usage

1
calcAlpha0(desired_prop, cov_dist, tol = 1e-04)

Arguments

desired_prop

The desired event rate

cov_dist

The covariate distribution. An integer 1-5 or one of the following: 'Ind Norm', 'Corr Norm', '5 Bern', '9 Bern', '10 Bern'

tol

The maximum difference between the upper and lower estimate

Value

A numeric to be used as alpha_0_treat or alpha_0_outcome.


kkbrum/PSMOptimalCalipers documentation built on Dec. 21, 2021, 6:45 a.m.