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
Trouble with stata outputs: graphing multiple catvars in a stacked bar format in stata, help with using Floatplot I’m not a data scientist so my jargon is going to be really off here but let me try to break this d…
How to generate count/ average no. of personi want to generate count of activity/average no. person. …
The problem with count if syntax regarding encoded string variablesFrom the dataset hospdd given by STATA (https://www.stata-press.com/data/r17/hospdd.dta), I want to …
Spatial shocks: when is collinearity too much?Hi, I am working with a municipality-level dataset. I am analysing the effect of immigration shocks…
PPML estimation with bilateral trade agreement dummies.Hello everyone! I am applying PPML estimation to analyze the impact of two trade agreements (both b…
Subscribe to:
Post Comments (Atom)
0 Response to Testing means with missing values
Post a Comment