powered by
Refers to section 6.2.
find_best_fp_powers(data, p, mc, degree, link = "logit")
list of 3 elements:
The best power for fp model.
Deviance of the best fitted model.
The best model fitted
the input data frame, must either have `age`, `pos`, `tot` columns (for aggregated data) OR `age`, `status` for (linelisting data)
a powers sequence.
indicates if the returned model should be monotonic.
the degree of the model. Recommended to be <= 2.
the link function. Defaulted to "logit".
df <- hav_be_1993_1994 best_p <- find_best_fp_powers( df, p=seq(-2,3,0.1), mc=FALSE, degree=2, link="cloglog" ) best_p
Run the code above in your browser using DataLab