tcensReg_llike_sepvar_maxLik: Log Likelihood for Model for J independent Truncated Normal...

Description Usage Arguments Value

View source: R/tcensReg_llike_sepvar_maxLik.R

Description

This function is part of the supporting function space to calculate the value of the log-likelihood at the nth iteration of theta. For this parametrization we assume that there exists (p-1) linear parameters for the mean and J separate variance parameters.

Usage

1
tcensReg_llike_sepvar_maxLik(theta, y, X, group, left_trunc = -Inf, v = NULL)

Arguments

theta

Numeric vector containing the values at the present iterate for the (p-1) fixed mean parameters and the J log sigma values

y

Numeric vector containing the outcome

X

Numeric design matrix

group

Factor variable used to define the J groups

left_trunc

Numeric scalar defining the common truncation value for each Truncated Normal

v

Numeric scalar defining the common censoring value

Value

Scalar value of the log-likelihood at the nth-iterate


tcensReg documentation built on July 8, 2020, 7:17 p.m.