Statalist


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

st: A simple question about Generalized Linear Model


From   "Mao Fan" <[email protected]>
To   statalist <[email protected]>
Subject   st: A simple question about Generalized Linear Model
Date   Wed, 22 Aug 2007 17:19:32 -0700

Hi,

    Here is my question:

    The condistional distribution of Y given X is
    Y|X~N(b0+b1'X,sigma2)

    I use glm command to estimate this conditional distribution.

    Now I wish to predict the following probability based on glm estimates:

    P = (1/sqrt(2*pi*sigma2))exp(-(Y-b0-b1'X)^2/2sigma^2)

How could I get the predicted value of P?  Thanks a lot!

David
*
*   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