get_beta: Estimate coefficient for treatment dummy

Description Usage Arguments Value

View source: R/data_generation_utils.R

Description

Estimate coefficient for treatment dummy

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_beta(
  n_iter,
  sample_size,
  n_covariates,
  n_normal,
  cov_mat,
  alpha,
  alpha_0_outcome,
  risk_diff
)

Arguments

n_iter

number of iterations

sample_size

sample size

n_covariates

number of covariates

n_normal

integer specifying the number of normal covariates (must be <= n_convariates)

cov_mat

covariance matrix

alpha

coeffcient vector (without intercept)

alpha_0_outcome

intercept for outcome model

risk_diff

intended risk difference

Value

estimate for beta (coefficient for treatment dummy)


annloh/austin2011 documentation built on Aug. 22, 2020, 12:13 a.m.