The example you show does not have 1,2,3 on the vertical axis either.
It's time for a re-write. Please start from scratch, and write what you want in the plot in detail, correctly, clearly, completely. Put some effort into this, make sure everything is clear, complete, correct. Please explain how the data in the output data set named FIT corresponds to the plot that you show. I want this all in one place so I don't have to keep scrolling up and down to read the various parts of your message and see your example, and so I don't have to ask five more questions, so I don't even have to ask one more question.
I suggest you use the "missing value trick" to create an evenly spaced set of Jours for scoring. Then run the model and use PROC SGPLOT to overlay the data and curves. You do this by using the GROUP=saison option:
/* to improve the visualization, add a sequence of evenly spaced
values to the data. This is the scoring set. */
data Score;
Score = 1;
do saison = 1 to 3;
do Jours = 15 to 250 by 5;
output;
end;
end;
run;
data All;
set curves Score;
run;
proc sort data=All;
by saison Jours;
run;
proc nlin data = All plots = fit;
parms A = 15 B = 0.19 C = -0.0012 ;
bounds A B C > 0;
by saison;
model PL = A * Jours **b * exp(-C*Jours);
output out = Fit predicted = Pred ;
run;
title1' courbe de lactation ';
proc sgplot data=fit;
scatter y=PL x=Jours / group=saison;
series y=pred x=Jours / group=saison;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.