fitdist function generates a vector of mean fitted probabilities that constitute the distribution. This involves marginalising out covariates.

fitdist(Matparam, data)

Arguments

Matparam

an M x k matrix of parameter draws, each being a 1 x k vector

data

dataframe used to obtain Matparam

Value

dist fitted (marginalised) distribution