Learn R Programming

GLmom (version 1.3.1)

comp.prof.ci: Compute profile likelihood confidence intervals

Description

Internal function that extracts confidence intervals from a profile log-likelihood curve at specified confidence levels.

Usage

comp.prof.ci(d, v, conf = NULL)

Value

A list containing:

vmax

Maximum log-likelihood value

nllh

Same as vmax

xmax

xi value at maximum likelihood

ci1

Lower CI bounds for each confidence level

ci2

Upper CI bounds for each confidence level

ci_length

CI lengths for each confidence level

Arguments

d

Data frame with columns x (xi values) and v (log-likelihood).

v

Numeric vector of log-likelihood values.

conf

Numeric vector of confidence levels (e.g., 0.95).