I'm looking to use an independent group t-test to compare the difference between students' grade estimates and their assigned grades (variable: gradempre) in one course against that of another course (variable: CourseID).
I've tried using:
ttest gradempre if CourseID==1, by(gradempre if CourseID==2)
to no avail. Of course I could assign the two courses' gradempre values as different variables...but I'm looking to do this kind of kind of comparison a number of times (and it feels like a good thing to know how to do!).
Any advice is much appreciated! Thank you.
System info:
Stata 15.1 for Windows (running Win10)
Related Posts with Subsetting twice with independent group t-tests
Represent different levels of categorical variables in coefplot as StackedHello, I am trying to see the relationship between diet and exercise with mental health disorder wi…
Levels of clustered standard errorsHi All, I have pooled data with 2500 funds, 2200 firms, and 20 time periods. Each fund could hold s…
Oaxaca Blinder DecompositionHi, I want to use Oaxaca Blinder Decomposition and Heckit for my final project. Both are used to an…
error on storing regression results into matrixHi, My model is as follows: Code: bysort Z: reg y x i.(W) where Z is a categorical variable and W…
Help needed with econometric model and implementation in StataI'm new to econometrics and need some help with my research. I'm working with research that has cros…
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting twice with independent group t-tests
Post a Comment