Hi, I have some problems with entering a data table for analyzing with, for example, proc reg. I want to enter a 7*8 table of 100 worker's wok time and wages as data, and find the regression model for it. Wage\Time 38.5 41.5 44.5 47.5 50.5 53.5 56.5 1100 2 1 1 0 1 0 0 1300 1 1 1 2 0 0 0 1500 1 1 2 1 2 1 0 1700 0 2 1 3 2 2 0 1900 0 1 3 4 2 1 1 2100 0 1 2 5 4 2 1 2300 0 1 2 4 5 6 2 2500 0 2 3 2 4 8 6 I've tried do statement in this way: Data Workers; do pay= 1100 1300 1500 1700 1900 2100 2300 2500; time= 38.5 41.5 44.5 47.5 50.5 53.5 56.5; input rep @@; output; end; end; cards; 2 1 1 0 1 0 0 1 1 1 2 0 0 0 1 1 2 1 2 1 0 0 2 1 3 2 2 0 0 1 3 4 2 1 1 0 1 2 5 4 2 1 0 1 2 4 5 6 2 0 2 3 2 4 8 6 ; proc reg; model pay=time; plot pay*time; run; but it didn't work. how can i run a regression with this type of data?? Thank you
... View more