I'm attempting a Poisson Regression general linear model in SAS.
I'm an R user, so I have no idea how to do this stuff in SAS. I'll post the data, along with the code that I've attempted already:
Game Success Attempts
1 4 5
2 5 11
3 5 14
4 5 12
5 2 7
6 7 10
7 6 14
8 9 15
9 4 12
10 1 4
11 13 27
12 5 17
13 6 12
14 9 9
15 7 12
16 3 10
17 8 12
18 1 6
19 18 39
20 3 13
21 10 17
22 1 6
23 3 12
I've tried using several different codes on the data, but I keep getting errors.
This code doesn't work for the initial input:
options nocenter;
data freethrows;
input $attempt $success;
datalines;
...(this is where I put each attempt and success for each game in each row for 23 rows)
;
run;
The example on the SAS website is the following:
data insure;
input n c car$ age;
ln = log(n);
datalines;
500 42 small 1
1200 37 medium 1
100 1 large 1
400 101 small 2
500 73 medium 2
300 14 large 2
;
run;
The GENMOD procedure is as follows:
proc genmod data=insure;
class car age;
model c = car age / dist = poisson
link = log
offset = ln;
run;
I'd like to run a similar analysis on the freethrows.