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
Fixed-effects individual slopes with unbalanced data (reghdfe)Dear Stata users, I have a question regarding fixed-effects individual-slopes models, also known as…
Consequences of modality under 5% of the total population ?Hi everyone, I hope I'm posting this in the right place. Here is my question : I've always heard …
Stationarity (unit root) and DCCE estimator (xtdcce2)?Dear members, In the case of DCCE estimator (xtdcce2), I got two unclear things: 1. one of the in…
Drop - last observation in each rowHi Everyone, Is there a way (command/code) in Stata to drop the last "row-wise varlist" in each row…
P-value based significance asterisks in price elasticity table in QUAIDS (Poi, 2012) modelDear Stata-users, I'm composing a demand elasticity model based on Poi's (2012) command: quaids. F…
Subscribe to:
Post Comments (Atom)
0 Response to Testing means with missing values
Post a Comment