LoglikNormalDeltaCens: Log likelihood function to compute mean difference between...

View source: R/LoglikNormalDeltaCens.R

LoglikNormalDeltaCensR Documentation

Log likelihood function to compute mean difference between two normally distributed censored samples.

Description

Reparametrization of the log likelihood function for a normally distributed censored sample such that the mean difference is a parameter of the function, thus allowing to be made inference on. The mean difference is computed as sample 1 - sample 2.

Usage

LoglikNormalDeltaCens(x, data1, lowerbound1, vdelta1, data2,
                      lowerbound2, vdelta2)

Arguments

x

A vector of four components where the first component corresponds to the mean of the normal distribution of the first sample, the second component corresponds to mean difference between the two samples: sample 1 - sample 2, the third component corresponds to the standard deviation of the normal distribution of the first sample, and the fourth component corresponds to the standard deviation of the normal distribution of the second sample.

data1

A vector of data corresponding to the first sample.

lowerbound1

A vector which corresponds to the lower bounds for the interval-censored observations of the vector of data corresponding to the first sample. If no lower bound is available then put NA.

vdelta1

A vector which indicates for censoring for the first sample (0: censored, 1: not censored).

data2

A vector of data corresponding to the second sample.

lowerbound2

A vector which corresponds to the lower bounds for the interval-censored observations of the vector of data corresponding to the second sample. If no lower bound is available then put NA.

vdelta2

A vector which indicates for censoring for the second sample (0: censored, 1: not censored).

Note

Function not intended to be invoked by the user.

Author(s)

Stanislas Hubeaux, stan.hubeaux@bluewin.ch

Kaspar Rufibach, kaspar.rufibach@gmail.com
http://www.kasparrufibach.ch

References

Hubeaux, S. (2013). Estimation from left- and/or interval-censored samples. Technical report, Biostatistics Oncology, F. Hoffmann-La Roche Ltd.

Lynn, H. S. (2001). Maximum likelihood inference for left-censored HIV RNA data. Stat. Med., 20, 33–45.


SurvRegCensCov documentation built on Sept. 27, 2023, 5:09 p.m.