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

Hi, I had a series of functions that I obtained from previous studies and I wanted to apply these functions to my data. And I also wanted to test if these functions fit our data. Could anyone give some hints on the coding ?

 

Appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Okay, here's some untested code using the natural logarithm (base e) of the value of Height

 

data want;
    set have;
    R5  = −3.841167 * log(Height) + 8.671580;
    R20 = −2.546561 * log(Height) + 5.841867;
    X5 = −0.000097 * Age + 1.018597 * log(Height) − 2.343672;
run;

 

--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

"Functions" is somewhat vague. Can you be specific?

 

And I also wanted to test if these functions fit our data.

 

Again, please be specific about what you mean by "test if these functions fit our data".

--
Paige Miller
gx2144
Calcite | Level 5

The equations were:

R5 (KPa/L/s) = −3.841167 × logHeight + 8.671580;

R20 (KPa/L/s) = −2.546561 × logHeight + 5.841867;

X5 (KPa/L/s) = −0.000097 × Age + 1.018597 × logHeight − 2.343672.

 

I had a data set that contains these variables(height, age, R5,R20,X5) and I wanted to apply these functions on my data set. And I wanted to see if these equations fit my data.

 

If this makes sense to you.

 

 

PaigeMiller
Diamond | Level 26

Okay, here's some untested code using the natural logarithm (base e) of the value of Height

 

data want;
    set have;
    R5  = −3.841167 * log(Height) + 8.671580;
    R20 = −2.546561 * log(Height) + 5.841867;
    X5 = −0.000097 * Age + 1.018597 * log(Height) − 2.343672;
run;

 

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 804 views
  • 0 likes
  • 2 in conversation