Generate Simulated Data with Multinomial Logistic Regression Model
Source:R/gendata.r
gendata_MLR.RdThis function generates the response variables y given
optional supplied X using a multinomial logistic regression model.
Arguments
- n
Number of observations.
- p
Number of features.
- NC
Number of classes for response variables.
- nu, w
If
betasis not supplied (default), the regression coefficients are generated with t prior with df =nu, scale =sqrt(w); will be ignored ifbetasis supplied.- X
The design matrix; will be generated from standard normal distribution if not supplied.
- betas
User supplied regression coefficients.

