psrange: Estimates models with increasing number of comparision...

Description Usage Arguments Value

View source: R/psrange.r

Description

Estimates models with increasing number of comparision subjects starting from 1:1 to using all available comparison group subjects.

Usage

1
2
  psrange(df, treatvar, formula, nsteps = 10, nboot = 10,
    samples, ...)

Arguments

df

data frame with variables to pass to glm

treatvar

vector representing treatment placement. Should be coded as 0s (for control) and 1s (for treatment).

formula

formula for logistic regression model

nsteps

number of steps to estimate from 1:1 to using all control records.

nboot

number of models to execute for each step.

samples

the sample sizes to draw from control group for each step.

...

other parameters passed to glm.

Value

a class of psrange that contains a summary data frame, a details data frame, and a list of each individual result from glm.


jbryer/PSAgraphics2 documentation built on May 18, 2019, 7:01 p.m.