Statalist


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

st: how to constrain rowtotal?


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
Subject   st: how to constrain rowtotal?
Date   Sun, 27 Jan 2008 14:14:59 +0100

Dear Statalisters,

I beg your pardon for my reposting, but the previous attempt did not get in
since I forgot to write this message in plain text format.

In a Markov Model I have four variables (A= 0.721; B= 0.202; C= 0.067; D=
0.010) showing transition probabilities from/to different health states,
which are both exhaustive and mutual exclusive (that is: Prob_A+ Prob_B+
Prob_C+ Prob_D=1)

I would like to randomly resampling the base case value of each variable
(let's say using -uniform()-): how can I constrain egen Resampling= rowtotal
(A_uniform B_uniform C_uniform D_uniform) =1 after each random resample?

Thanks a lot for your kindness and for your time.

Kind Regards and enjoy your W-E,

Carlo



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