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
Merger SimulationHi Stata people, I have two questions, I want to apply merger simulation after running a two-level …
Generating squared difference within group variableHello, I have the following stylized dataset: Code: * Example generated by -dataex-. To install: …
Interpreting margins command for log transformed IV and DVHi, I am using panel data for US companies for the period 2000-2019. My research involves studying …
How to rename around 200 rows of a matrix simultaneously or in iterationHi, I'm very new to Stata and I've searched and tried answers for this question for three hours. I'm…
Destring Factor DataDear all, For my thesis, I have downloaded factor data from Kenneth French's website in a csv forma…
Subscribe to:
Post Comments (Atom)
0 Response to Testing means with missing values
Post a Comment