predict_coxme: Predict coxme

Description Usage Arguments Examples

View source: R/predict_coxme.R

Description

Prediction method for coxme objects

Usage

1
2
3
4
5
6
7
predict_coxme(
  object,
  newdata = NULL,
  type = c("lp", "risk"),
  se.fit = FALSE,
  strata_ref = TRUE
)

Arguments

object

coxme object.

newdata

data.frame new data set.

type

type of prediction, linear predictor ("lp") or relative risk ("risk").

se.fit

if TRUE, pointwise standard errors are produced for the predictions.

strata_ref

logical, use strata as reference.

Examples

1
2
3
4
library(coxme)
data(eortc)
fit <- coxme(Surv(y, uncens) ~ trt + (1|center), eortc)
predict_coxme(fit)

junkka/ehahelper documentation built on March 17, 2021, 2:12 a.m.