ds_reg_logreg: Reguarized logistic regression

Description Usage Arguments See Also Examples

View source: R/reg-logreg.R

Description

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

Usage

1

Arguments

space

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

data

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

...

document other arguments

See Also

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

Examples

1
2
3
4
data("states")

mdl <- ds_reg_logreg("v2x_veracc_osp", states, alpha_n = 1)
preds <- predict(mdl, new_data = states)

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