Skip to content

Commit

Permalink
Corrected group assignment.
Browse files Browse the repository at this point in the history
Previous version reversed group assignment. This version corrected that.
  • Loading branch information
adamrossnelson authored Oct 25, 2021
1 parent 93401bb commit f8836a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exampledata/DatasaRusCorrelationModified.do
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ scatter hrs2 score, name("Check0")
// Generate groups based on rotated vraibles
gen group = "Unk"
sort hours
replace group = "5yr" if hrs2 > 45
replace group = "4yr" if hrs2 < 45 & hrs2 > 10
replace group = "1yr" if hrs2 > 45
replace group = "2yr" if hrs2 < 45 & hrs2 > 10
replace group = "3yr" if hrs2 < 10 & hrs2 > -10
replace group = "2yr" if hrs2 < -10 & hrs2 > -45
replace group = "1yr" if hrs < -45
replace group = "4yr" if hrs2 < -10 & hrs2 > -45
replace group = "5yr" if hrs < -45

// Check work
twoway ///
Expand Down

0 comments on commit f8836a4

Please sign in to comment.