Description Usage Arguments Details Value See Also Examples
brokenstick
is used to fit brokenstick models on two-dimensional data
such as Time-Depth, Depth-Temperature or Depth-Light profiles. Brokenstick models
are useful for compressing or extracting the shape of high resolution profiles.
1 2 |
x |
The x data. Note that the |
y |
The y data. (processed by |
npts |
The number of points for the brokenstick model to fit. See
|
start |
Some starting points to start the algorithm with. |
na.action |
A function which indicates what should happen when the data
contain |
allow.dup |
If |
not.inj.action |
What should be done when |
sort.data |
Should the data be sorted according to |
... |
Further arguments to be passed to |
See bsmfit
, the function called by brokenstick
on each iteration to fit the model with specified points.
A bsm
object with (depending on eco.mem
):
pts.x The x values of the brokenstick points (eco.mem
inefficient).
pts.y The y values of the brokenstick points (eco.mem
inefficient).
slope The slopes of each "stick" of the model (eco.mem
inefficient).
intercept The intercept of each "stick" of the model (eco.mem
inefficient).
pts (eco.mem < 4
) The index of the brokenstick points.
na.action Information from the action which was applied to object if NAs
were handled specially. (eco.mem
inefficient)
residuals (eco.mem < 3
) The model's residuals.
fitted.values (eco.mem < 2
) The fitted values.
data (eco.mem < 1
) The input data used for fitting.
pts.no The iteration number of points. (eco.mem
inefficient)
optBrokenstick
and predict.bsm
, residuals.bsm
,
update.bsm
, summary.bsm
,
coef.bsm
, plot.bsm
, as.data.frame.bsm
for other functions with a S3 method for bsm
objects.
1 2 3 4 5 6 7 8 | data(exses)
dv <- tdrply(identity, 1:2, no = 100, obj = exses)[[1]]
# Syntax
bsm <- brokenstick(dv$time, dv$depth)
bsm <- brokenstick(dv) # if two columns
bsm <- brokenstick(depth ~ time, dv)
bsm <- with(dv, brokenstick(depth ~ time))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.