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]
Re: st: Stata programming question
From
Sergiy Radyakin <[email protected]>
To
[email protected]
Subject
Re: st: Stata programming question
Date
Thu, 13 Jan 2011 18:28:16 -0500
See example of bestreg.
In Stata type: net from http://adeptanalytics.org/download/ado/
Then install bestreg from the list.
See the source of it, and adjust for the type of estimator.
There should be plenty discussions on the Statalist as well. See
http://www.stata.com/statalist/archive/2004-04/msg00106.html
and google for more.
Best, Sergiy.
On Thu, Jan 13, 2011 at 3:52 PM, Data Analytics Corp.
<[email protected]> wrote:
> Hi,
>
> I have a programming question. I want to run an alternative-specific
> conditional logit model (asclogit) with a casevars option that has a varying
> number of variables in the varlist. In particular, the varlist has up to
> four variables: age, gender, region, status. All are strings so dummies
> have to be created for each. I want the individual calls to asclogit to
> estimate a model with all four variables, with all combinations of three of
> the four, with two of the four, and with just one of each of the four.
> There are 2^4 = 16 combinations and hence 16 estimations. How can I write
> a program to loop through all 16 estimations? I want to avoid having to
> write out each of the 16.
>
> Thanks,
>
> Walt
>
> ________________________
>
> Walter R. Paczkowski, Ph.D.
> Data Analytics Corp.
> 44 Hamilton Lane
> Plainsboro, NJ 08536
> ________________________
> (V) 609-936-8999
> (F) 609-936-3733
> [email protected]
> www.dataanalyticscorp.com
> _____________________________________________________
>
> *
> * 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/