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 Feb. 3, 2023, 12:28 a.m.