Hello,
I have been off the grid for some time. It's nice to post again something, and I look forward to hearing from you
As per title, I am wondering if I wrote correctly a formula in R.
The formula, as derived from literature, is attached as an image. It aims at predicting the speed of walking (m/s) as function of the terrain slope (slope measured in percent).
Now, the way I trasposed it into R is the following:
Now, the following bit
abs(x[adj])*100
is the slope in percent, while the multiplication by 3.6 is meant to convert the speed from m/s to Kmh.
Since I am getting weird results, I am wondering if I screwed something up in the formula.
Any feedback is really apprecited.
Best
Gm
I have been off the grid for some time. It's nice to post again something, and I look forward to hearing from you
As per title, I am wondering if I wrote correctly a formula in R.
The formula, as derived from literature, is attached as an image. It aims at predicting the speed of walking (m/s) as function of the terrain slope (slope measured in percent).
Now, the way I trasposed it into R is the following:
Clike:
(0.11 + 0.67 * exp((abs(x[adj])*100 + 2)^2 / (2 * 30^2))) * 3.6
abs(x[adj])*100
is the slope in percent, while the multiplication by 3.6 is meant to convert the speed from m/s to Kmh.
Since I am getting weird results, I am wondering if I screwed something up in the formula.
Any feedback is really apprecited.
Best
Gm
Attachments

14.8 KB Views: 6