multi_class_lr: Multinomial Logistic Regression

Description Usage Arguments Value Note

View source: R/ff_sims.R

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

1
2
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.

Note

This work was partially funded by NSF IIS 1251151 and AMFAR 8721SC.


fuzzyforest documentation built on March 25, 2020, 5:09 p.m.