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
create a weight on dependent var and run as regressionDear all, I have searched in the forum on how to create a weight for a variable but I could not pre…
repeated measures latent class analysis (RMLCA) ID TIME_POINT A B C 1 1 5 10 10 1 2 25 25 25 1 3 50 50 25 2 1 50 25 25 2 2 25 75 75 2…
How to add a macro/string variable to a matrixI run a structural break test using the command estat sbsingle for a large number of regressions. I …
Dealing with gaps in data.Hi, I'm having trouble getting my data in the right format. I'm working with weakly data values but …
Big Five - combined mean of six itemsHi, I have six items, which is rated on a likert-scale (1-5). I would like the combined mean of the…
Subscribe to:
Post Comments (Atom)
0 Response to T-Test between two varibles with dummy condition
Post a Comment