Here is what I am trying to solve for:
Using the data set HW4D1, fit a log-linear negative-binomial regression modeling the number of home runs a player hit in the 1986 season (i.e. variable nhome), with the explanatory variable salary.
Here is my code:
PROC IMPORT OUT= WORK.BASEBALL
DATAFILE= "C:\Users\kpwil\Downloads\HW4D1 (4).xlsx"
DBMS=EXCEL REPLACE;
RANGE="'HW4D1 (4)$'";
GETNAMES=YES;
MIXED=NO;
SCANTEXT=YES;
USEDATE=YES;
SCANTIME=YES;
RUN;
proc print data= Baseball;
run;
proc logistic data=baseball desc;
model y = nHome ;
run;
The output has an error: ERROR: VARIABLE Y NOT FOUND
It reads the data because I did a proc print and it came out fine, what should I do?