powered by
You choose a slope for terminal half-life.
DetSlope(x, y, SubTitle="", sel.1=0, sel.2=0)
R-squared
adjusted R-squared
number of points used for the slope
negative of the slope, lambda_z
intercept of the regression line
correlation of log(y) and x
earliest x for lambda_z
last x for lambda_z
predicted y value at the last point, predicted concentration for the last time point
vector values of x-axis, usually time
vector values of y-axis, usually concentration
subtitle to be shown on the plot
default index of the first element to use
default index of the last element to use
Kyun-Seop Bae <[email protected]>
Sometimes BestSlope cannot find terminal slope satisfactorily. Then you can use this function to choose manually. It returns the same format result with BestSlope with an attribute indicating used points.
BestSlope
Slope
DetSlope(Theoph[Theoph$Subject==1, "Time"], Theoph[Theoph$Subject==1, "conc"]) DetSlope(Indometh[Indometh$Subject==2, "time"], Indometh[Indometh$Subject==2, "conc"])
Run the code above in your browser using DataLab