Hello everyone,
I have a small problem executing a one-would-think simple t-test and I hope you can help me!
So let's say I have two variables x and y and the data set looks like the following:
x y
------------------------------
1 5
2 .
3 .
. 4
4 .
. 3
Now I want to test whether the mean of x is different to the mean of y ( so H0: 2.5 = 4)
Is there any smart way to do this?
If I just do ttest x=y I obviously get "no observation" and when I create a new variable which displays the mean respectively I get a test where 6 observations are tested against each other but I want to test 4 obs vs. 3 obs.
Thank you in advance!
Related Posts with Testing means with missing values
Speed of StataDear All, I am using stata 15.1. I noticed something that I cannot explain. I am using the command …
Probit or logit?Dear community? Is there any difference in using probit or logit regression when i have binary DV? …
Strata option in Bootstrap commandHello everybody, for my PhD thesis I am developing a DiD model that captures the effects of a partic…
Panel Data model: DIagnostic testingHi stata community. I really need help. I have a long panel T=17 and N=8(countries). These are the s…
Loop regexm to search for multiple strings stored as observationsDear Statalists, I have sucessfully used regexm to search for one string (a diagnose code, for exam…
Subscribe to:
Post Comments (Atom)
0 Response to Testing means with missing values
Post a Comment