stopsack / risks

risks: R package for estimating risk ratios and risk differences using regression
https://stopsack.github.io/risks
GNU General Public License v3.0
5 stars 1 forks source link

Convergence errors could be described #8

Open tgerke opened 1 year ago

tgerke commented 1 year ago

If we know this is a convergence problem, let's write an informative error that tells the user this is the case.

> riskratio(
+   formula = death ~ stage + receptor, 
+   data = breastcancer, 
+   approach = "glm"
+ )
Error: no valid set of coefficients has been found: please supply starting values

This is relevant to models.Rmd

stopsack commented 1 year ago

Great idea! Indeed, trying to fit a plain vanilla log-binomial model (approach = "glm") on the breastcancer dataset is the motivating example for risks and prior papers like the one by Spiegelman and Hertzmark.