simulate_ABk_outcomes: simulate_ABk_outcomes

Description Usage Arguments Value

Description

generate outcome vectors for each individual case

Usage

1
2
simulate_ABk_outcomes(df, beta_vec, k, phi = 0.2, sigma = 1, tau = 1,
  treatment_name = "TREATMENT")

Arguments

df

data.frame from simulate_ABk_no_outcome

beta_vec

vector of linear coefficients, shared over individuals

k

the number of complete phases

sigma

within-case variance

tau

between-case variance

treatment_name
slope_treatment

string indicating name of the treatment sub-phase as recorded in df

Value

list containing an estimated beta vector and loss values obtained during convergence


fineiskid/scdlintrend documentation built on May 16, 2019, 12:53 p.m.