This function computes the cdf, pdf, and associated derivatives
Usage
margins(z, th, model, x = NULL, dfM = NULL)
Value
out
Matrix of conditional cdf, derivative with respect to parameter, pdf,
Arguments
z
vector of responses
th
linear combination of covariates (can be negative)
model
model for margin: "binomial" (bernoulli), "poisson", "nbinom" (mean is the parameter),"nbinom1" (p is the parameter), "geometric", "multinomial", "exponential", "weibull", "normal","t", "laplace"
x
covariates for the multinomial margin (default is NULL)
dfM
degrees of freedom for the Student margin (default is NULL)
Author
Pavel Krupskii and Bruno N. Remillard, January 20, 2022