The estimating functions for this example have been described in detail elsewhere. Here are a few, with accompanying code in multiple languages

https://academic.oup.com/aje/article/192/3/467/6564140#412157886

https://pubmed.ncbi.nlm.nih.gov/38423105/

Comments