proc_logistic: ((very) limited) Emulation of SAS proc_logistic

Description Usage Arguments Examples

View source: R/proc_logistic.R

Description

((very) limited) Emulation of SAS proc_logistic

Usage

1
proc_logistic(fit, scale = "pearson", tables = "waldci")

Arguments

fit

Should be a glm model fit with family binomial("logit")

scale

Matching SAS argument, uses either pearson or deviance for estimation of dispersion parameter, takes either "pearson" or "deviance"

tables

Optional length one character vector to indicate output. Enter as a single string (rather than a vector). Options include any of opt = "waldci covb lackfit", in any order

Examples

1
2
3
4
5
6
7
8
9
fit <- glm(cbind(Mort, Pop-Mort) ~ Age_Gp,
           family = binomial(link = "logit"), data = ACHD)

proc_logistic(fit, tables = "waldci covb lackfit")

fit2 <- glm(cbind(MJ, Total-MJ) ~ AL + CG, data = maryjane,
           family = binomial)

proc_logistic(fit2, tables = "waldci")

collinn/sassyR documentation built on May 1, 2020, 1:59 a.m.