
fit_likelihood() calculates the error between fitted density and observed density distributions
Source:R/fit_likelihood.R
fit_likelihood.RdThis function takes the list of results from output_likelihood() and compares
the predicted density distributions to observed density distributions,
estimating the SSE (sum of squared errors) and counts the number of emissions
observations with densities that have overlapping 95 percent CI with predicted densities.
Arguments
- likelihood_result
Output list from
output_likelihood()
Value
The sum of squared error (SSE) between predicted and observed
probability densities, and the count of emissions whose 95 percent CI around
predicted probability densities overlaps observed probability densities.
Also includes the integration of predicted pdf, distribution type used, and
merged data sets of observed and predicted densities at each emission value
and each xval, named obs_pdf_dat and xhat_pdf_dat respectively. The
obs_pdf_dat also includes the upper and lower 95 percent and median around predicted
pdf. The UPL estimate from output_likelihood() is included as well.