Hi everyone,
I am a new Stata user and have a problem with commands.
I am working with a dataset of deaths caused by natural disasters (floods, droughts and typhoons) which has 4 variables: Deaths (deaths toll, wich ranges from 0 to 22), Floods, Droughts and Typhoons (in the three cases the variable is the probability of having X deaths due to the specific type of natural disaster).
What I want to do is to compute conditional probabilities for each death toll (0-22) considering all types of disasters. For example the probability of having 1 death is: Floods(=1)*Droughts(=0)*Typhoons(=0) + Floods(=0)*Droughts(=1)*Typhoons(=0) + Floods(=0)*Droughts(=0)*Typhoons(=1). And so on up to 22..
I really do not know how to do this in Stata not even which command to use.
Dos anyone could help me with this? Any sugerence is welcome.
Thanks in advance
I am a new Stata user and have a problem with commands.
I am working with a dataset of deaths caused by natural disasters (floods, droughts and typhoons) which has 4 variables: Deaths (deaths toll, wich ranges from 0 to 22), Floods, Droughts and Typhoons (in the three cases the variable is the probability of having X deaths due to the specific type of natural disaster).
What I want to do is to compute conditional probabilities for each death toll (0-22) considering all types of disasters. For example the probability of having 1 death is: Floods(=1)*Droughts(=0)*Typhoons(=0) + Floods(=0)*Droughts(=1)*Typhoons(=0) + Floods(=0)*Droughts(=0)*Typhoons(=1). And so on up to 22..
I really do not know how to do this in Stata not even which command to use.
Dos anyone could help me with this? Any sugerence is welcome.
Thanks in advance
Comment