Learn R Programming

hmi (version 0.9.16)

contributions4intervals: get the likelihood contributions of interval data

Description

This function calculates the likelihood contributions of interval data

Usage

contributions4intervals(lower_bounds, upper_bounds, mymean, mysd)

Arguments

lower_bounds

a vector with the lower bounds of an interval covariate.

upper_bounds

a vector with the upper bounds of an interval covariate.

mymean

a numeric for the expected value of the normal distribution (which is one of the parameters trying to be optimized so that the likelihood becomes maximized)

mysd

a numeric for the standard deviation of the normal distribution (which is one of the parameters trying to be optimized so that the likelihood becomes maximized)

Value

a vector giving the likelihood contributions of the interval data.