BookmarkSubscribeRSS Feed
esraa1
Fluorite | Level 6

Hi! I have the data below and I was applied the linear regression (piecewise regression), I wonder if I can apply the piecewise nonlinear regression by SAS.

 
 
 
 

 

30 1 
26 2
39 3
44 4
35 5
20 6
27 7
67 8
25 9
39 10
69 11
74 12
45 13
41 14
50 15
67 16
55 17
77 18
41 19
38 20
38 21
46 22
45 23
62 24
60 25
62 26
49 27
60 28
78 29
69 30
64 31
86 32
68 33
53 34
59 35
56 36
68 37
57 38
59 39
101 40
63 41
90 42
92 43
64 44
77 45
69 46
82 47
70 48
63 49
66 50
78 51
94 52
88 53
62 54
77 55
92 56
76 57
55 58
70 59
54 60
76 61
58 62
58 63
79 64
77 65
79 66
 

linear regression plot_60.PNG

 

 

 

 

 
 
 
 
 

 

 
 

 

 

shayma
3 REPLIES 3
Ksharp
Super User

It looks like you need Forecast Model (SAS/ETS) .
Try post it at Forecast Forum .

Or @Rick_SAS  may have some thought .

Rick_SAS
SAS Super FREQ

This is a continuation of a previous thread, but this time the OP is asking for nonlinear regression.

 

You say "nonlinear regression," but I suspect you mean either polynomial regression (fit a quadratic or cubic curve) or nonparametric regression (fit a smooth curve). Both can be accomplished using the same tip you got earlier: In PROC SGPLOT 

  • use the REG statement and the DEGREE=3 option to fit a cubic polynomial to the data.
  • use the LOESS statement to fit a smooth curve to the data.

Here is a link to the SGPLOT documentation about fitting curves in PROC SGPLOT

 

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 3 replies
  • 871 views
  • 1 like
  • 4 in conversation