Learn R Programming

depCensoring (version 0.1.7)

get.cond.moment.evals: Compute the conditional moment evaluations

Description

This function computes the 1(Y <= t) - Lambda(X^T beta(t)) and Lambda(X^T beta(t)) - 1(Y <= t, Delta = 1) parts of the moment functions. (Used in function get.mi.mat.R)

Usage

get.cond.moment.evals(data, beta, t, hp)

Value

A vector of 2n elements containing in the first n positions the evaluations of 1(Y <= t) - Lambda(X^T beta(t)) and in the last n positions the evaluations of Lambda(X^T beta(t)) - 1(Y <= t, Delta = 1).

Arguments

data

Data frame.

beta

Vector of coefficients.

t

Time point of interest.

hp

List of hyperparameters.