phackr: phackr

Description Usage Arguments Value Examples

View source: R/phackr.R

Description

The phackr function takes a dataset, a vector of dependent variables, and a vector of demographic variables and creates a tibble of multivariate significance from ordinal logit models.

Usage

1
phackr(data, dvs, demos, logit = FALSE)

Arguments

data

A survey data object. This can be created with the phackr_setup function

dvs

A vector of dependent variables to run the same model across.

demos

A vector of demographic variables and covariates to include in the ologit model.

logit

A parameter to run logistic regressions. Defaults to ordinal logistic regression.

Value

Returns a tibble that can quickly be written to an excel sheet

Examples

1
sheet1 <- phackr(data = survey_data, dvs = c("q2", "q3", "q4"), demos = c("race", "partyid", "gender"))

willdebras/phackr documentation built on Aug. 22, 2019, 2:49 p.m.