simupara: Parameters for simulating data

Description Arguments

Description

Parameters for simulating data

Arguments

nPat

number of patients

muCov

mean vector of covariates

sdCov

standard deviation vector of covariates

corCov

correlation of covariates

regCoeff

regression coefficients

mix.phi

weight in mixture model

cov.breaks

breaks to cut covaraites into categories. If numeric, the same cuts will be applied to all covariates. If list, each covariates will be categorized based on its own breaks. If NULL, keep continuous.

type

distributions of the random error

ysig

standard error of the random error

skew.n

parameter of negative bionomial distribution

skew.p

parameter of negative bionomial distribution

b0

intercept in regession model

bin.mu

mean of the binary outcomes used to compute b0

formula.z

formula of the treatement assignment model. No intercept term.

formula.y

formula of the outcome model. No intercept term.

trial.data

existing clinical trial data

group

column referring to arm in the existing dataset

outcome

column referring to outcome in the existing dataset

trt.effec

true treatment effect to be set

with.replacement

sample with or without replacement from the existing dataset

keep.group

sample ignore arm assignment in the existing dataset


olssol/rwetools documentation built on April 18, 2021, 11:42 a.m.