Learn R Programming

PHInfiniteEstimates (version 2.9.5)

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,
  cc1 = 0
)

Value

a list with components

  • d0 partial likelihood

  • d1 first derivative vector

  • d2 second derivative matrix

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.

cc1

Continuity correction for first component of the score.

References

kz19PHInfiniteEstimates