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

Description Usage Arguments Value

View source: R/tcensReg_llike_sepvar.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(theta, y, X, group, a = -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

a

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


williazo/tcensReg documentation built on July 24, 2020, 1:39 a.m.