[R] slope in curves - how to compare?

Joshua Wiley jwiley.psych at gmail.com
Mon Feb 20 23:56:42 CET 2012


Hi John,

What do you mean by 'compare'?  y = exp(5x) could equally be said: y =
exp(x)^5 so no, the slopes of those two lines are not the same or are
only equal when you take the natural logarithm of y (log_{e}(y) =
log_{e}(5x).

They specify _completely_ different relationships between x and y; so
what are you hoping to accomplish?

Cheers,

Josh

On Mon, Feb 20, 2012 at 2:32 PM, John Kohr <illuminati248 at hotmail.com> wrote:
>
> Hello,
>
> Is there any formula or way to compare slopes of different functions?
>
> If we fit 2 functions in our data, and we have 2 slope parameters, how can we compare these slopes? Plotting y=5x and y=exp(5x) in which slope is equal to 5 in both of them.. doesn't seem that it makes sense to compare them. Maybe what I ask is basic statistics.. but you may be aware of some formula that could allow comparisons.
>
> best,
> John
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-help mailing list