I am using the following code to read in some data:
data score_test; do Group = 'Maths','Physics'; do Subj = 1 to 5; input Score ; output; end; end; datalines; 50 22 30 21 99 66 83 23 29 34 ;
The scores for Math are 50,22,30… and similarly for physics.however the o/p I am getting is:
How do I input the data correctly without changing their arrangement in datalines??