knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of mreg is to implements the techniques of exact likelihood when the discrete outcome can be missing in a regression model. It is the accompanying software to the paper Bond S, Farewell V, 2006, Exact Likelihood Estimation for a Negative Binomial Regression Model with Missing Outcomes, Biometrics
You can install the released version of mreg from CRAN with:
install.packages("mreg")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("shug0131/mreg")
This is a basic example which shows you how to solve a common problem:
library(mreg) mod1 <- mreg( damaged~offset(log(intervisit.time))+esr.init, data=public,patid=ptno,print.level=1, iterlim=1000 ) mod1 summary(mod1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.