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: -svy:cloglog- and margins


From   "Muhuri, Pradip (SAMHSA/CBHSQ)" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: -svy:cloglog- and margins
Date   Tue, 13 Aug 2013 15:51:38 +0000

Hello,

I am using the -svy:cloglog- command. Although the following code has run successfully, I find the following issues:

1) There are no results on AIC or log likelihood.
2) The covariate (category) labels do not get printed.
3) STATA has encountered memory problems with the _margins- command.

Code and part of the log file are appended below.

I would appreciate receiving your help resolve the issue.

Thanks,

Pradip

****************** CODE BEGINS HERE ************************************
svyset psu [pweight=wt8], strata (stratum) vce(linearized) singleunit(missing)
capture noisily svy,subpop(xa_age2534): cloglog dead i.sex ib2.xspd2 ib3.xsmoke ///
                           i.racehisp i.educ_cat ib2.bmicat i.xchronic i.dur_cat, eform nolog

est store xa_age2534
 
// predicted probabilities 
margins, at(xspd2=1 sex=1 xsmoke=1)

********************* CODE ENDS ****************



**** part of log is shown below ********

. set mem 1100m

Current memory allocation

current                                 memory usage
settable          value     description                 (1M = 1024k)
--------------------------------------------------------------------
set maxvar         5000     max. variables allowed           1.909M
set memory         1100M    max. data space              1,100.000M
set matsize         400     max. RHS vars in models          1.254M
-----------
1,103.163M


capture noisily svy,subpop(xa_age2534): cloglog dead i.sex ib2.xspd2 ib3.xsmoke ///
>                            i.racehisp i.educ_cat ib2.bmicat i.xchronic i.dur_cat, eform nolog
(running cloglog on estimation sample)

Survey: Complementary log-log regression

Number of strata   =       339                Number of obs      =     5452441
Number of PSUs     =       678                Population size    =  4496260644
                                              Subpop. no. of obs =      910798
                                              Subpop. size       =   767527101
                                              Design df          =         339
                                              F(  17,    323)    =        8.20
                                              Prob > F           =      0.0000

------------------------------------------------------------------------------
             |             Linearized
        dead |     exp(b)   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       2.sex |   .5399235    .091528    -3.64   0.000     .3868292    .7536075
     1.xspd2 |   2.558419   .8200659     2.93   0.004     1.361925    4.806071
             |
      xsmoke |
          1  |   2.211701   .4393086     4.00   0.000     1.496397    3.268931
          2  |   1.086697   .3152706     0.29   0.775     .6141504    1.922837
             |
    racehisp |
          2  |   .7185942   .1860835    -1.28   0.203     .4317886    1.195904
          3  |    1.30917   .3441712     1.02   0.306     .7805838    2.195697
          4  |   .9208313   .4563238    -0.17   0.868     .3474165    2.440674
             |
    educ_cat |
          2  |   1.014501   .2464665     0.06   0.953      .629097    1.636015
          3  |   .6111502   .2035563    -1.48   0.140     .3174108    1.176723
             |
      bmicat |
          1  |   .9297175   .3486015    -0.19   0.846     .4446783     1.94382
          3  |   .9186897   .1697265    -0.46   0.646     .6387739    1.321267
          4  |   1.094444   .2550174     0.39   0.699     .6920597    1.730786
             |
    xchronic |
          2  |   2.217402   .4243704     4.16   0.000     1.521795    3.230968
          3  |    2.20824   .9069187     1.93   0.055      .984481    4.953192
             |
     dur_cat |
          2  |   .8422691   .1978369    -0.73   0.465     .5306394     1.33691
          3  |   .6923725   .1601424    -1.59   0.113     .4392944    1.091249
          4  |   .8787595   .2019911    -0.56   0.574     .5591294    1.381108
------------------------------------------------------------------------------

. 
. est store xa_age2534

. 
end of do-file

. do "C:\DOCUME~1\PRADIP~1.MUH\LOCALS~1\Temp\STD05000000.tmp"

. margins, at(xspd2=1 sex=1 xsmoke=1)
no room to add more variables because of width
    An attempt was made to add a variable that would have increased the memory required to store an observation beyond what is currently possible.  You have the following alternatives:

     1.  Store existing variables more efficiently; see help compress.

     2.  Drop some variables or observations; see help drop.  (Think of Stata's data area as the area of a rectangle; Stata can trade off width and length.)

     3.  Increase the amount of memory allocated to the data area using the set memory command; see help memory.

Pradip K. Muhuri, PhD
SAMHSA/CBHSQ
1 Choke Cherry Road, Room 2-1071
Rockville, MD 20857
Tel: 240-276-1070
Fax: 240-276-1260



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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