Statalist The Stata Listserver


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

st: numerical integration by INTEG


From   Cecilia Frale <cecilia.frale@uniroma2.it>
To   statalist@hsphsun2.harvard.edu
Subject   st: numerical integration by INTEG
Date   Mon, 23 Jan 2006 18:47:32 +0100

Dear Statalisters,
here my problem, any suggestions are welcome.

Let jit, (jit = 1, 2, 3), denote the survey response of firm i at time t.
Suppose you are using a latent regression: yjit = 1 if µ(j-1)i < yit* < µji and
0 otherwise (j = 1, 2, 3), to deal with the categorical nature of data (we
observe yjit instead of y*it ).

Now consider that responses are related to a variable xt according to the
conditional linear model yit = ái + âi xit  where ái and âi are firm-specific
time-invariant coefficients.

I used a firm specific ordered probit model to estimate P(j|xt, i) , j = (1, 2,
3).

Let f(xt) denote the time-invariant density function of xt. Therefore, the
conditional probability of observing response j for firm i is P(j|i) = I(-inf,
+inf)P(j|xt, i)f(xt)dxt , where I(-inf, +inf) is the integral over R.

How can I calculate this integral using the INTEG Stata command?



Cecilia




*
*   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index