BookmarkSubscribeRSS Feed
Barkamih
Pyrite | Level 9
proc nlin data = new outest=ESTIMATES;
parms A = 15 B = 0.19 C = -0.0012 ;
bounds  A B C > 0; 
by cow_id;
model  TEST_DAY_MILK_KG = A * Time **b * exp(-C*Time);
output out = Fit predicted = Pred ;
run;
proc sql;
create table persistency as
select 
    cow_id,
    A, B, C, 
    -(B+1)*LOG(C) as P,
	A * (B/C)**(B) * exp(-B) as peakYield
from ESTIMATES
where _TYPE_ = "FINAL";
select * from persistency;
run;
quit;

Hi Guys 

could you please help me to find out the solution to this question  

I would like to know how to find the effect of environmental factors by using the individual parameter estimates from this code above. 

Note: the environmental factors are e.g  (parity, calving month ...... .) 

 

in this case what the next step I might do to get this answer. 

if you looking for more information about my study please let me know 

 

kind regards 

 

Ibrahim 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 1109 views
  • 0 likes
  • 1 in conversation