type: p vector indicating the type of variable for each column in data. "g" for Gaussian, "p" for Poisson, "c" for categorical.
level: p vector indicating the number of categories of each variable. For continuous variables set to 1.
mgm(data, type, level, ...)
data: n x p data matrix
type: p vector indicating the type of variable for each column in data. "g" for Gaussian, "p" for Poisson, "c" for categorical.
level: p vector indicating the number of categories of each variable. For continuous variables set to 1.