ds_logistic_reg: Logistic regression

Description Usage Arguments See Also Examples

View source: R/logistic-reg.R

Description

Demonstrates the interface. Otherwise only difference is that it internally normalizes input data before fitting and predicting.

Usage

1
ds_logistic_reg(space, data, normalize = FALSE)

Arguments

space

(character(1))
Name of the V-Dem indicator for a democratic space

data

(base::data.frame()) A data frame or similar object

normalize

Standardize data using make_standardizer()?

See Also

Other Other DS models: ds_logistic_reg_featx(), ds_reg_logreg()

Examples

1
2
3
4
data("states")

mdl <- ds_logistic_reg("v2x_veracc_osp", states)
preds <- predict(mdl, new_data = states)

andybega/demspaces documentation built on April 18, 2021, 11:05 p.m.