Hi there,
I want to compare the group with Quintile 1 and Quintile 5 regarding higherdegree ( a dummy varible) and conducting t-test between them.
My code is below but the t-test value is invalid.
Could you please give me some suggestions?
tab QuiABC HighDegree1
| HighDegree
| 1
QuiABC | 1 | Total
-----------+-----------+----------
1 | 45 | 45
2 | 30 | 30
3 | 38 | 38
4 | 30 | 30
5 | 76 | 76
-----------+-----------+----------
Total | 219 | 219
.
. ttest HighDegree1 if inlist(QuiABC, 1, 5), by(QuiABC)
Two-sample t test with equal variances
------------------------------------------------------------------------------
Group | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
1 | 45 1 0 0 1 1
5 | 76 1 0 0 1 1
---------+--------------------------------------------------------------------
combined | 121 1 0 0 1 1
---------+--------------------------------------------------------------------
diff | 0 0 0 0
------------------------------------------------------------------------------
diff = mean(1) - mean(5) t = .
Ho: diff = 0 degrees of freedom = 119
Ha: diff < 0 Ha: diff != 0 Ha: diff > 0
Pr(T < t) = . Pr(|T| > |t|) = . Pr(T > t) = .
Related Posts with T test of two groups in quintiles with dummy varible
Testing the Equality of the Regression Coefficients After PPMLHDFEI tried to estimate a PPML gravity model of bilateral trade with country-time fixed effects by -ppml…
two-y-axeshello, I try to show my results based on two y-axes but the results are not satisfactory in the grap…
Can -margins- after -mixed- with small sample inference show t-tests rather than z-tests?Hello everyone. After using one of the dfmethod() options for -mixed- to obtain small-sample inferen…
Constraints on the estimated coefficientsOn the following non-linear least squares estimation of the risk parameter (risk), I would like to a…
Creating a rate grouped by another variableHello, I have a large dataset (27 vars, 1,048,575 obs) that contains data on malaria insecticide t…
Subscribe to:
Post Comments (Atom)
0 Response to T test of two groups in quintiles with dummy varible
Post a Comment