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
Using Loops to Convert Strings With Letters to Numeric ValuesHello Stata Users :-) I have a dataset comprised of 71 variables containing responses to items on a…
[Help] Marginal effect on StataHi. My question is from Stata (15.1), but also requires some statistical knowledge, which is why I a…
Hausman and testparmHello everyone, Just a little confused, I currently have a panel data and I am choosing between usin…
Renaming VariablesI am using STATA 15. I have a large data set with multiple columns and rows. I am interested in two …
Two-part modeling: combination of LCA and LPAHi Statalists, I was trying to do a two-part modeling for my dataset, in which observed vars are ze…
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting twice with independent group t-tests
Post a Comment