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
bysort and vce optionHi, I am a graduate student. First, I will explain my situation. I have a dependent variable(score)…
How do you identify ICD-10-CM codes in Nationwide Inpatient Sample (NIS) using STATA?NIS has 40 Diagnoses (dx1 to dx40) listed for every patient. I am trying to find how many have diabe…
Create a new variable to combine the value of other variablesHi all, I have a dta file with data set as : fid year tbl_2001 tbl_2002 tbl_2003 tbl_2004 tbl_2005 …
Create a new variable to combine the value of other variablesHi all, I have a dta file with data set as : fid year tbl_2001 tbl_2002 tbl_2003 tbl_2004 tbl_2005 2…
Merging datasetHi, I want to ask a question on merging dataset. My Master dataset looks like an example given belo…
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting twice with independent group t-tests
Post a Comment