Skip to content

MoserGitHub/censn

Repository files navigation

Implementation of the R and Stata code to a censored skew-normal approach with delayed entry as described in Moser et al. (2015), Modeling absolute differences in life expectancy with a censored skew-normal regression approach. PeerJ 3:e1162; DOI 10.7717/peerj.1162

Author: André Moser

Institute of Social and Preventive Medicine (ISPM), University of Bern, Finkenhubelweg 11, Switzerland, CH-3012 Bern

Stata

Load the https://github.com/MoserGitHub/censn/blob/master/Example.do do-file into Stata 14. It uses the GitHub import function from http://haghish.github.io/github/, which requires Stata 14.

In case of Stata <14 simply copy the files censn.ado, censn.sthlp, and sn_ltrun.ado into an ado-path and set properly the ado-path in Stata (adopath + "X:/ado/"). Then run the Example.do file.

R

See the SkewExample_R.pdf for a reproducible example (markdown document SkewExample_R.Rmd).

About

Censored skew-normal regression approach with delayed entry

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published