BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DanBrug
Calcite | Level 5

Hello,

 

I want to fit a power function (e.g. y = ax^b) using the NLMIXED procedure. Unfortunately, I don´t know (and also did not find any hints, yet) whether or how the syntax for a power function works within the model statement of the NLMIXED procedure. Let´s assume the following model statement:

 

model y~ Normal (a*x^b, errvar);   The bold part of the term (^b) obviously does not work to introduce the power of b to x. 

 

Can anyone help me on this? Is this possible at all?

 

 

Thank you very much in advance!

 

D.B.

1 ACCEPTED SOLUTION

Accepted Solutions
andreas_lds
Jade | Level 19

Instead of ^ try **, works in a data-step:

 

26         data _null_;
27            a = 4 ** 2;
28            put a=;
29         run;

a=16

View solution in original post

2 REPLIES 2
andreas_lds
Jade | Level 19

Instead of ^ try **, works in a data-step:

 

26         data _null_;
27            a = 4 ** 2;
28            put a=;
29         run;

a=16
DanBrug
Calcite | Level 5

Thank you so much!

 

This worked quite well!

 

 

Regards,

Daniel.