generate_p_norm_count_bin_data_count: Generate data from p-variate normal covariates (count...

Description Usage Arguments Value Author(s)

Description

.. content for details ..

Usage

1
2
generate_p_norm_count_bin_data_count(n, p, rho, lambda, prev, alphas, sigma,
  beta0, betaA, betaX, betaXA)

Arguments

n

Sample size

p

number of covariates. Must be 3 or more.

rho

correlation coefficient

lambda

mean parameter for X2 (count variable)

prev

prevalence vector for X3 through Xp (binary variables)

alphas

True coefficients for the first and second treatment linear predictors. This vector should contain the intercept. alphas = c(alpha01, alphaXm1, alpha02, alphaXm2)

sigma

scaling of all covariate effects. A higher value means stronger covariate effects, i.e., less clinical equipoise.

beta0

Outcome model intercept coefficient

betaA

Outcome model coefficient for I(A_i = 1) and I(A_i = 2)

betaX

Outcome model coefficient vector for covariates X_i

betaXA

Outcome model interaction coefficients for covariates. betaXA = c(betaXA1, betaXA2)

Value

a complete simulated data_frame

Author(s)

Kazuki Yoshida


kaz-yos/empeq3 documentation built on May 8, 2019, 7:29 a.m.