BookmarkSubscribeRSS Feed
lshortna
Fluorite | Level 6

Hi everyone. I am having some issues figuring out the best model and code for my data. In a nutshell, I have biomass yield data over time (harvests at various days after planting), for two years, 2019 and 2021. We sampled 12 different plots per harvest, so my individual data points for each harvest day differ by plot number. We have 12 data points each time, but they are not the same plot each harvest time. Harvests based on days after planting differ between years. I know I need to include Year as a random effect. However, when I run a GLM on the data, I don't get a great fit. We believe we need a model that is nonlinear and can better fit to our growth curve, but running an NLIN procedure isn't working for us either. I have been exploring the NLMIXED procedure and think it may be useful. However, I have been using the Tasks functions in SAS Studio (On Demand for Academics) to help with coding, and I can't seem to figure out how to do this for the NLMIXED procedure. Any advice is appreciated because I have no clue what model would be best for us to try! Thanks!  

6 REPLIES 6
lshortna
Fluorite | Level 6

To add, here is part of our data, and clearly our current model isn't best representing the data as we need to predict yield from day 0 and on but definitely have biomass yields before 45 DAP.

 sas help.JPG

Ksharp
Super User

I suggest to use percentile regression . and @Rick_SAS wrote many blogs about it .

SteveDenham
Jade | Level 19

Two possible directions spring to my mind:

 

Take a look at the EFFECT statement.  You could fit a spline function, but that really doesn't help you come up with a response function.

 

Try googling 4 parameter logistic model to see if that makes sense.  There are several examples of fitting this using NLMIXED out there.

 

SteveDenham

 

Oh yeah, when you say the NLIN procedure "isn't working", what specifically isn't working.  Are there errors in the log?  Messages in the output?  Inquiring minds want to know.

Ksharp
Super User
As Steve said ,try spline effect.
Or add more effect in your model like:
y=x + x^2 ;
or
y=x + x^2 + x^3;
t75wez1
Pyrite | Level 9

I suggest to explore Local Regression and the Loess Method.

 

https://www.lexjansen.com/nesug/nesug12/gr/gr07.pdf

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 6 replies
  • 699 views
  • 2 likes
  • 4 in conversation