Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

fuzzyforest (version 1.0.8)

multi_class_lr: Multinomial Logistic Regression

Description

Function to generate multi-class data from a multinomial logistic regression. Assumes there are 5 classes. Only supports two modules for now. Currently this function is used for testing.

Usage

multi_class_lr(n, mod1_size = 10, mod2_size = 10, rho = 0.8,
  beta = NULL)

Arguments

n

Sample size.

mod1_size

Size of first module.

mod2_size

Size of second module.

rho

Correlation of covariates.

beta

A matrix of parameters.

Value

list with design matrix X, outcome y, and beta.