logistic_reg_featx: Logistic regression with feature extraction

Description Usage Arguments See Also Examples

View source: R/logistic-reg-featx.R

Description

Standardized interface for logistic regression with a feature extraction step, e.g. PCA.

Usage

1
logistic_reg_featx(x, y, n_comp = 5)

Arguments

x

Data frame with features.

y

Binary vector indicating outcome event.

n_comp

Number of components to keep.

See Also

Other Other base models: logistic_reg(), reg_logreg()

Examples

1
2
3
4
5
6
7
library(modeldata)
data(credit_data)
credit_data <- credit_data[complete.cases(credit_data), ]

mdl <- logistic_reg_featx(
  credit_data[, setdiff(colnames(credit_data), "Status")],
  credit_data$Status)

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