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
Correlation between two matricesHi, I have 4 variables called x, y, x1, and y1. I define two matrices called A and B as A=[x y] and…
Splitting sample by dependent variableDoes it ever make sense for one to split their sample by values of the dependent variable and then r…
How to plot multilevel coefficients from mixed ? Can you use coefplot? If not a loop? macro?Hello Statalist & happy holidays! I need to plot the curves from my mixed analysis. But I'm not…
graphHi all, I have data about companies' performance over time and a variable that identifies uncertain…
Have any other users of Stata under Windows had problems with the shell command disallowing UNC paths?Fellow Statalisters I use the very latest Stata Version 16 (dated 11 Dec 2019) under Windows 10, an…
Subscribe to:
Post Comments (Atom)
0 Response to Testing means with missing values
Post a Comment