Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

clean_survname

Convert a survival outcome to a model name


Description

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

Examples

clean_survname("Surv(eventtime, event != 'censored')")

JointAI

Joint Analysis and Imputation of Incomplete Data

v1.0.2
GPL (>= 2)
Authors
Nicole S. Erler [aut, cre] (<https://orcid.org/0000-0002-9370-6832>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.