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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1113 views
  • 0 likes
  • 1 in conversation