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
What commands would be needed to create this tableI want to create a mean randomization check table for a RCT. Basically I want to generate a table li…
Manipulating this data table - seems simple but I cannot think of a solutionSo I think my question is best shown with a set of pictures. This is what my current data looks lik…
Variable type change after mergingHello Statalists, I have a question about data merging. I am merging two data sets together ("mast…
OLS and GMM regression on insurance dataI have some insurance data and I want to make a) an OLS regression and b) an GMM regression on th…
Predicted probabilities at specified values of case-specific variables clogitDear all, I was estimating a conditional logit model with alternative-specific coefficients for an …
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting twice with independent group t-tests
Post a Comment