kfold_logit: Logit model with k-fold cross validation

View source: R/kfold_logit.R

kfold_logitR Documentation

Logit model with k-fold cross validation

Description

Function for linear model and its results

Usage

kfold_logit(data, formula = "y ~ .", k = 10)

Arguments

data

Name of the data frame.

formula

Model in the format "y ~ x". Default: Predict variable y with all other variables.

k

Number of kfolds. Default: 10.

Examples

kfold_logit(ISLR::Smarket, "Direction ~ .")

JouniVatanen/jmisc documentation built on Jan. 25, 2023, 8:41 p.m.