(Answered)-SAS Program: The following character strings are the - (2025 Updated Original AI-Free Solution
Question
- SAS??Program:??
- The?following?character?strings?are?the?observations.?
- Every?string?contains?three?types?of?information:?STATE?(NY?or?NJ),?SCORE?(the?number?between?the?letters)?and?GROUP?(A,?B?or?missing).
- Write?a?SAS?DATA?step?to?create?a?data?set?named?QUES2?containing?four?variables:?STATE,?SCORE,?GROUP?and?NEWSCORE,?in?which?*100?if?GROUP=?A?;?NEWSCORE?is?missing?if?GROUP?is?missing?and??if?GROUP=?B?.?
?
NY113A NY15B ? NJ10A NY34A NJ23B
NY87A NY23???? ? NJ23B? ? NJ9A