Learn R Programming

PrevMap (version 1.5.4)

loglik.ci: Profile likelihood confidence intervals

Description

Computes confidence intervals based on the interpolated profile likelihood computed for a single covariance parameter.

Usage

loglik.ci(object, coverage = 0.95, plot.spline.profile = TRUE)

Arguments

object

object of class "profile.PrevMap" obtained from loglik.linear.model.

coverage

a value between 0 and 1 indicating the coverage of the confidence interval based on the interpolated profile likelihood. Default is coverage=0.95.

plot.spline.profile

logical; if TRUE an interpolating spline of the profile-likelihood of for a univariate parameter is plotted. Default is FALSE.

Value

A list with elements lower and upper for the upper and lower limits of the confidence interval, respectively.