Hey, I woul like to know how I could do the t-test between 2 variables if I calculated the mean with an if condition (if the dummy has the value 1)
So I did: egen meanvar1=mean(var) if dummy1==1
egen meanvar2=mean(var) if dummy2==1
Now I want to do know wether the difference between meanvar1 and meanvar2 is significantly different to zero.
Hope you can help me!
Related Posts with T-Test between two varibles with dummy condition
interactions in nonlinear models Hello, I am running an MNL model with the following specifications Code: mlogit son_occ ib(5)…
Assigning colors to box plot with stratificationDear Forum, I would like to box plot sCD163 over HIV status (positive vs. negative) (i) stratified …
How to check for orthogonality in a DiD framwork?Hi guys, while going trough some papers which used the DiD, I came across one paper in which it is m…
ivregress for binary variablesHi All. I am analyzing data from a trial looking at the impact of treatment on prognosis (i.e. dead…
Keep and truncate variables with specific characterHello, I am trying to do two things: 1. Keep any variable which has a variable name that begins wit…
Subscribe to:
Post Comments (Atom)
0 Response to T-Test between two varibles with dummy condition
Post a Comment