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

View source: R/linreg_am.R

linreg_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

linreg_am(params0, Y, X, C, Z = NULL, data, steptol = 1e-06, iterlim = 100)

Arguments

params0

Starting 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.

steptol

(Fed to nlm()) A positive scalar providing the minimum allowable relative step length. Default is steptol = 1e-6.

iterlim

(Fed to nlm()) A positive integer specifying the maximum number of iterations to be performed before the program is terminated. Default is iterlim = 100.

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.