augment.coxme: Augment coxme

Description Usage Arguments Examples

View source: R/broom_coxme.R

Description

Augment coxme object

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'coxme'
augment(
  x,
  data = survival:::model.frame.coxph(x),
  newdata = NULL,
  type.predict = "lp",
  ...
)

Arguments

x

coxme object

data

original data for augment

newdata

new data on which to do predictions

type.predict

type of prediction value linear predictor or risk

...

Extra arguments, not used

Examples

1
2
3
4
library(broom)
library(coxme)
fit <- coxme(Surv(y, uncens) ~ trt + (1|center), eortc)
augment(fit, type.predict = "risk")

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