For competing risk settings, check if the requested cause is known to the object

checkCauses(cause, object)

Arguments

cause

cause of interest

object

object either obtained with Hist or prodlim