Hello-
I have a fairly basic logisitic regression model looking at the effect of time on bacterial growth. This model also includes a simple spline term, where the spline term begins at time= 10, and for all values after time=10 the spline= (time - 10).
What I want is the slope after time= 10, which =exp(β1+ β2).
How do I get a confidence interval for this particular slope. I do not want to compare the slope from time < 10, I only want the confidence interval for exp(β1+ β2). Am I wrong that the contrast and estimate statements will provide me with odds ratio values, as opposed to just the isolated slope of the combined terms??
For what it's worth, here's the basic model in SAS:
proc logistic data= growth_data descending;
model growth= time spline
run;
Log(odds)= β0 + β1(time) + β2(spline term for time)
As a visual, what I'm interested in is the slope and confidence interval for the blue section
Hi-
Thanks for the response! I currently have the spline term already constructed and in the model, and can find the confidence interval for that term alone, but need the combined confidence interval.
What I should add is that I can currently use the outest= covout option and then use the variance and covariance values to calculate the standard error and then use that to calculate the upper and lower confidence limits...but it's extremely clunky and I imagine SAS has a better way.
However, I was not aware that you could code values using the comma to indicate an 'other' value. That's way simpler than writing if then/ else statements. Many thanks for the new info!!
Thanks for the help! I wasn't familiar with proc plm, always great to learn something new!
PROC PLM is awesome. See the article "Tecniques for scoring a regression model" for another example.
Rick-
Thanks for the link. I've heavily relied on your blog posts for many, many of my SAS questions!
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.