Learn R Programming

PHInfiniteEstimates (version 1.6)

newllk: Proportional hazards partial likelihood, using Breslow method for ties, excluding some observations.

Description

This function implements the approximate conditional inferential approach of kz19;textualPHInfiniteEstimates to proportional hazards regression.

Usage

newllk(
  beta,
  fit,
  exclude = NULL,
  minus = FALSE,
  keeponly = NULL,
  justd0 = FALSE
)

Arguments

beta

parameter vector.

fit

Output from a Cox PH regression, with x=TRUE and y=TRUE

exclude

data set with stratum and patient number to exclude.

minus

logical flag to change sign of partial likelyhood

keeponly

variables to retain. Keep all if this is null or NA.

justd0

logical variable, indicating whether to calculate only the function value and skip derivatives.

Value

a list with components

  • d0 partial likelihood

  • d1 first derivative vector

  • d2 second derivative matrix

References

kz19PHInfiniteEstimates