R/num.nhpp.form.R

num.nhpp.form <-
function (form, allow = F)
{
    switch(generic.nhpp.form(form, allow = allow)[[1]], power.rule = iform <- 1,
        log.linear = iform <- 2, {
            the.message <- paste("NHPP form not recognized in num.nhpp.form:",
                form)
            if (generic.nhpp.form(form, allow = F)[[2]]) {
                iform <- 0
            } else {
                stop(the.message)
            }
        })
    return(iform)
}
Auburngrads/SMRD documentation built on Sept. 14, 2020, 2:21 a.m.