R/gendata.r
gendata_MLR.Rd
This function generates the response variables y
given
optional supplied X
using a multinomial logistic regression model.
gendata_MLR(n, p, NC = 3, nu = 2, w = 1, X = NULL, betas = NULL)
n | Number of observations. |
---|---|
p | Number of features. |
NC | Number of classes for response variables. |
nu, w | If |
X | The design matrix; will be generated from standard normal distribution if not supplied. |
betas | User supplied regression coefficients. |
A list contains input matrix X
, response variables y
, and regression coefficients deltas
.