Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New packages -margprev- and -marglmean- on SSC


From   "Roger B. Newson" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: New packages -margprev- and -marglmean- on SSC
Date   Sat, 19 Nov 2011 18:17:21 +0000

Thanks as always to Kit Baum, 2 new packages -margprev- and -marglmean- are now available for download from SSC. In Stata, use the -ssc- command to do this.

The -margprev- and -marglmean- packages are described as below on my website, and are front-ends for -margins- and -nlcom-. -margprev- is used post-estimation to estimate a marginal prevalence for a binary outcome (with confidence limits defined using the logit transform), and -marglmean- is used post-estimation to estimate a marginal mean of a non-negative-valued outcome (with confidence limits defined using the log transform). They can both be used in out-of-sample prediction to standardize means or prevalences to a standard population. Together with the existing packages -regpar-, -punaf- and -punafcc-, they form a suite of post-estimation programs which use the capabilities of the Stata Version 12 -margins- command to estimate scenario means, prevalences and comparisons.

Best wishes

Roger


--
Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

----------------------------------------------------------------------------
package margprev from http://www.imperial.ac.uk/nhli/r.newson/stata12
----------------------------------------------------------------------------

TITLE
      margprev: Marginal prevalences from binary regression models

DESCRIPTION/AUTHOR(S)
      margprev calculates confidence intervals for marginal
      prevalences, also known as scenario proportions.  margprev can be
      used after an estimation command whose predicted values are
      interpreted as conditional proportions, such as logit, logistic,
      probit, or glm.  It estimates a marginal prevalence for a
      scenario ("Scenario 1"), in which one or more predictor variables
      may be assumed to be set to particular values, and any other
      predictor variables in the model are assumed to remain the same.

      Author: Roger Newson
      Distribution-Date: 16november2011
      Stata-Version: 12

INSTALLATION FILES                                  (click here to install)
      margprev.ado
      margprev_p.ado
      margprev.sthlp
----------------------------------------------------------------------------
(click here to return to the previous screen)

----------------------------------------------------------------------------
package marglmean from http://www.imperial.ac.uk/nhli/r.newson/stata12
----------------------------------------------------------------------------

TITLE
      marglmean: Marginal log means from regression models

DESCRIPTION/AUTHOR(S)
      marglmean calculates symmetric confidence intervals for log
      marginal means (also known as log scenario means), and
      asymmetric confidence intervals for the marginal means
      themselves.  marglmean can be used after an estimation
      command whose predicted values are interpreted as positive
      conditional arithmetic means of non-negative-valued outcome
      variables, such as logit, logistic, probit, poisson, or glm
      with most non-Normal distributional families.  It can
      estimate a marginal mean for a scenario ("Scenario 1"), in
      which one or more exposure variables may be assumed to be
      set to particular values, and any other predictor variables
      in the model are assumed to remain the same.

      Author: Roger Newson
      Distribution-Date: 16november2011
      Stata-Version: 12

INSTALLATION FILES                                  (click here to install)
      marglmean.ado
      marglmean_p.ado
      marglmean.sthlp
----------------------------------------------------------------------------
(click here to return to the previous screen)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index