Martin Lysy, Tian You, Yifan Wang
Provides efficient algorithms to compute the MLE of a heteroscedastic regression model, with linear mean and log-linear variance covariates. An Expectation-Maximization algorithm is provided for right-censored responses, which are expected in the context of survival analysis for the corresponding heteroscedastic accelerated failure-time model of Wang et al (2019).
Install the R package devtools and run
devtools::install_github("mlysy/hlm")
The main function in the package is hlm()
, which you would typically call like this:
M <- hlm(y ~ x1 + x2 | x1)
This would fit a heteroscedastic model with mean linear in x1
and x2
, and variance log-linear in x1
. For more examples please see ?hlm
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.