I'm extremely new to SAS and still find it pretty intimidating.
I'm trying to graph the relationship between fish eggs and the age of the fish. I also have a dummy variable, month.
I've successfully plotted the simple linear regression model without the month being included, but I wish to have it so if the month = 1, the plotted points are one color and if it is = 0, the plots are another.
It's embarrassing how lost I am, but this is my sad attempt at just plotting the dummy variables.
ods html;
ods graphics on;
data FishEggs;
input DryMass Age Month;
datalines;
37.35 7 0
38.05 8 0
37.45 8 0
38.35 10 0
37.4 13 0
37.55 13 0
36.35 13 1
35.4 12 1
32.45 16 1
36.55 17 1
34 18 1
;
set Month;
if Month =1, then Sept=1; else Sept=0;
output;
proc reg data=FishEggs;
model DryMass=Age Month;
run;
ods graphics off;
ods html close;
Any help would be GREATLY appreciated.
I'm trying to graph the relationship between fish eggs and the age of the fish. I also have a dummy variable, month.
I've successfully plotted the simple linear regression model without the month being included, but I wish to have it so if the month = 1, the plotted points are one color and if it is = 0, the plots are another.
It's embarrassing how lost I am, but this is my sad attempt at just plotting the dummy variables.
ods html;
ods graphics on;
data FishEggs;
input DryMass Age Month;
datalines;
37.35 7 0
38.05 8 0
37.45 8 0
38.35 10 0
37.4 13 0
37.55 13 0
36.35 13 1
35.4 12 1
32.45 16 1
36.55 17 1
34 18 1
;
set Month;
if Month =1, then Sept=1; else Sept=0;
output;
proc reg data=FishEggs;
model DryMass=Age Month;
run;
ods graphics off;
ods html close;
Any help would be GREATLY appreciated.