scqe.1csumm: Stability controlled quasi-experiment (scqe) for 1 cohort...

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function returns the scqe estimates and confidence intervals for the 1 cohort case when the user inputs only summary statistics.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
scqe.1csumm(
  untr_1C,
  Y_untr_1C,
  tr_1C,
  Y_tr_1C,
  delta,
  min_delta,
  max_delta,
  alpha = 0.05,
  ...
)

Arguments

untr_1C

Number of untreated individuals.

Y_untr_1C

Outcome for untreated individuals.

tr_1C

Number of treated individuals.

Y_tr_1C

Outcome for treated individuals.

delta

Single value or vector of possible values for change in average non-treatment outcome between cohorts (if applicable).

min_delta

Minimum delta. Optional, not used if delta is supplied.

max_delta

Maximum delta. Optional, not used if delta is supplied.

alpha

Numeric alpha for confidence interval (default is alpha = 0.05).

...

Extra optional arguments.

Value

scqe object of class "scqe." Returns results table for the 1 cohort, summary statistics case.

Examples

1
2
3
4
5
# One cohort, summary data only
scqe.1cohort.sum = scqe(untr=100,tr=200,Y_untr=5,Y_tr=50,
min_delta=.1,max_delta=1)
plot(scqe.1cohort.sum)
summary(scqe.1cohort.sum)

chadhazlett/scqe documentation built on May 18, 2021, 1:32 a.m.