data <- sim_mnp(N = 500, J = 3, P = 2, b = c(1, 3), Sigma = diag(3))
theta <- attr(data, "true")
f_ll_mnp(theta = theta, data = data)
# \donttest{
nlm(f_ll_mnp, p = theta, data = data, neg = TRUE)$estimate
# }
Run the code above in your browser using DataLab