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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 8065 views
  • 1 like
  • 2 in conversation