View source: R/Francis_bomb_functions.R
get.ref.line | R Documentation |
get.ref.line
generates a list containing isoreg
function
model fits to x
and y
data. The function 1st checks to see
if multiple y
values are present for a given x
. If there
are, it determines the mean
y
for each variable of
x
" before using the function isoreg
to compute the
isotonic (monotonely increasing nonparametric) least squares regression
which is piecewise constant that bests fits the data.
get.ref.line(x, y)
x |
numeric vector representing the |
y |
numeric vector representing the |
Object of class list
containing the results of the
link{isoreg}
function. The list
will be of length
two:
original (constructed) abscissa values x
, sorted in
ascending order
fitted values corresponding to ordered x
values
isoreg
Other Bomb Radiocarbon Analyses:
bias.plot.BR()
,
calc.bias()
,
calc.h()
,
closest.pt()
,
get.h.from.bias()
,
get.nearest()
,
sim.hdist()
set.seed(1234) x <- 1:100 y <- x + rnorm(100, 0, 5) get.ref.line(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.