neg_loglik_am: Maximum likelihood estimator (MLE) for right-censored...

View source: R/neg_loglik_am.R

neg_loglik_amR Documentation

Maximum likelihood estimator (MLE) for right-censored covariates in normal linear regression

Description

Maximum likelihood estimator (MLE) for right-censored covariates in normal linear regression

Usage

neg_loglik_am(params, Y, X, C, Z = NULL, data)

Arguments

params

Model parameter values.

Y

Name of column variable.

X

Name of censored covariate variable.

C

Name of observed version of X.

Z

(Optional) name(s) of additional fully observed covariates. Default is Z = NULL

data

A dataframe containing at least columns Y, X, C, Z.

Value

A list with the following two elements:

coeff

A dataframe containing coefficient and standard error estimates at convergence.

code

An integer indicating why the optimization process terminated. See ?nlm for details on values.


sarahlotspeich/fitCensRd documentation built on Oct. 14, 2024, 4:52 a.m.