Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: glm executes very very slow


From   "G. Dai" <dgecon@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: glm executes very very slow
Date   Wed, 7 Jul 2010 11:11:10 -0700

maybe. The r`i'cenreg only take values with 1, 2, 3,4 , and 5.

On Wed, Jul 7, 2010 at 11:03 AM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> I very much doubt the idea of a bug in -glm-. The point is that your syntax change is not at all trivial: it could mean many fewer parameters to estimate. Otherwise put, the issue is almost certainly the difficulty of fitting your model, rather than the size of the dataset or any problem in Stata.
>
> Nick
> n.j.cox@durham.ac.uk
>
> G. Dai
>
> For reference only, if i replace  i.r`i'cenreg with r`i'cenreg, the
> glm command runs through. but I don't know why. Maybe a bug with glm?
>
> On Wed, Jul 7, 2010 at 10:17 AM, G. Dai <dgecon@gmail.com> wrote:
>> FYI, the dataset is about 50m with obs about 4000.
>>
>> On Wed, Jul 7, 2010 at 9:03 AM, G. Dai <dgecon@gmail.com> wrote:
>>> hi all,
>>> I guess it might be useful to open a new thread for my problem.
>>>
>>> I'm using glm command to estimate a fraction probit model.
>>> however, when the do file goes to the following glm estimation,
>>> it becomes very very slow. actually, it took me hours to finish the estimation.
>>>
>>> I tried it on STATA SE 11.1 in a MAC and on STATA MP 11.0 in the department
>>> server.
>>>
>>> any help is appreciated.
>>>
>>> Guang
>>>
>>> ************************excerpt begins******************
>>> svy: glm   r`i'pin r`i'`x'nhu /*parental NH stay experience*/
>>>               h`i'itot h`i'atotf /*income and financial wealth*/
>>>               r`i'conde r`i'adlsa r`i'iadlsa /*health condition and status*/
>>>               r`i'nrshom /*past NH experience*/
>>>               raedyrs  r`i'agey_b  ragender /*identity*/
>>>               h`i'child r`i'hiltc /*health insurance and children*/
>>>               i.r`i'cenreg,fam(bi 1) link(probit);
>>> ***********************excerpt ends*****************
>>> Note, where r`i'pin is the fractional variable ranges from 0 to
>>> 1,which massive point at 0.
>
> *
> *   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/
>

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index