Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: beta coefficients


From   "Alex Barr" <[email protected]>
To   [email protected]
Subject   st: beta coefficients
Date   Wed, 22 Aug 2007 14:48:17 +0000

In a model with state dummies SD, time dummies TD and state-specific trends ST (constructed as state dum multiplied by centred linear trend): suppose 3 states, 3 years

Y(ist) = a + b2 S2(s) + b3 S3(s) + c2 T2(t) + c3 T3(t) + d2 ST2(st) + d3 ST3(st) + g�X(ist)

The estimated state-year effects are as follows.

state year Estimated effect
1 1 0
1 2 c2
1 3 c3
2 1 b2+d2+0
2 2 b2+2d2+c2
2 3 b2+3d2+c3
3 1 b3+d3+0
3 2 b3+2d3+c2
3 3 b3+3d3+c3
etc

I want to construct col.3 in stata and save it as data. Any help would be much appreciated

----Original Message Follows----
From: Marcello Pagano <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: st: RE: Hypergeometric Distribution
Date: Wed, 22 Aug 2007 10:43:43 -0400

I looked at --ssizebi-- but it seems to be focused on power and sample sizes.

Newson, Roger B wrote:

Thanks to Marcello for telling us all about this recently-published
algorithm, which looks very useful. A search on

findit hypergeometric

in Stata finds a single reference (to a SSC package), which was
distributed as long ago as 1999. This suggests that the new algorithm
might be a good candidate for implementation in Mata by Marcello, or by
anybody else with the time and inclination to do so.

Roger


Roger Newson
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: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

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

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Marcello
Pagano
Sent: 22 August 2007 14:31
To: [email protected]
Subject: st: Hypergeometric Distribution

Does anyone have or know of Stata code to calculate the Hypergeometric Distribution accurately?

See Journal of Discrete Algorithms , Volume 5 , Issue 2 (June 2007) Pages: 341-347 for an article by Berkopec, HyperQuick algorithm for discrete hypergeometric distribution <http://portal.acm.org/citation.cfm?id=1240586&coll=GUIDE&dl=GUIDE&CFID=
27443384&CFTOKEN=80678482>.

Thanks,

m.p. *
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

_________________________________________________________________
Can you see your house from the sky? Try Live Search Maps http://maps.live.com

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index