Skip to contents

A helper function that converts the "name of a survival model" (the "Surv(time, status)" specification) into a valid variable name so that it can be used in the JAGS model syntax.

Usage

clean_survname(x)

Arguments

x

a character string or vector of character strings

Value

A character vector of the same length as x, in which survival outcomes ("Surv(...)") are replaced by valid variable names; other values are returned unchanged.