CheckDataRegression: Checking input data (regression model)

View source: R/check.R

CheckDataRegressionR Documentation

Checking input data (regression model)

Description

Checks if input data formats are appropriate. For inappropriate inputs, this function (i) fixes the data format, or (ii) stops the run and generates an error message.

Usage

CheckDataRegression(xdata, ydata = NULL, family = "gaussian", verbose = TRUE)

Arguments

xdata

matrix of predictors with observations as rows and variables as columns.

ydata

optional vector or matrix of outcome(s). If family is set to "binomial" or "multinomial", ydata can be a vector with character/numeric values or a factor.

family

type of regression model. This argument is defined as in glmnet. Possible values include "gaussian" (linear regression), "binomial" (logistic regression), "multinomial" (multinomial regression), and "cox" (survival analysis).

verbose

logical indicating if a loading bar and messages should be printed.


sharp documentation built on April 11, 2025, 5:44 p.m.