Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Slope

Get the Slope of regression log(y) ~ x


Description

It calculates the slope with linear regression of log(y) ~ x

Usage

Slope(x, y)

Arguments

x

vector values of independent variable, usually time

y

vector values of dependent variable, usually concentration

Details

With time-concentration curve, you frequently need to estimate slope in log(concentration) ~ time. This function is usually called by BestSlope function and you seldom need to call this function directly.

Value

R2

R-squared

R2ADJ

adjusted R-squared

LAMZNPT

number of points used for slope

LAMZ

negative of slope, lambda_z

b0

intercept of regression line

CORRXY

correlation of log(y) and x

LAMZLL

earliest x for lambda_z

LAMZUL

last x for lambda_z

CLSTP

predicted y value at last point, predicted concentration for the last time point

Author(s)

Kyun-Seop Bae <k@acr.kr>

See Also

Examples

Slope(Indometh[Indometh$Subject==1, "time"], Indometh[Indometh$Subject==1, "conc"])

pkr

Pharmacokinetics in R

v0.1.2
GPL-3
Authors
Kyun-Seop Bae [aut], Jee Eun Lee [aut]
Initial release
2018-06-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.