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
storing significant coefficients only - by firm regressionHello there, I am trying to store the beta coefficients with their t-stats and p-value but am unabl…
Properly interpreting odds ratios vs marginal effectsDear Statalist, I would like to kindly ask for help in the interpretation of these variables in a lo…
Extract year from datetime variableHello all, I am trying to extract the years from a datetime variable and do not seem to find a way.…
How to calculate CFO TENUREHi everyone, I need to calculate the CFO tenure. May I request for your guidance in its calculation?…
CES-D Score Cutoff StataHello, I am a little confused to create a dummy variable for mental disability from the CESD questio…
Subscribe to:
Post Comments (Atom)
0 Response to T test of two groups in quintiles with dummy varible
Post a Comment