View source: R/Francis_bomb_functions.R
get.h.from.bias | R Documentation |
get.h.from.bias
calculates the relationship between h
and
bias, returning a list with components hval
and
bias.conf.int
get.h.from.bias( ref, test, hdist, bias.step = 5, bias.range = NULL, ref.x = "x", ref.y = "y", age = "Fish.Age", cy = "Catch.Year", age.err = "SE.Age", s.age = "Sample.Age", test.x = "Sample.Year", test.y = "F14C" )
ref, test |
dataframes representing reference and test data sets,
respectively, as described in function |
hdist |
simulated set of h values as generaed by function
|
bias.step, bias.range |
the function calculates |
ref.x, ref.y |
character string giving the name of the x and y-values in
the provided |
age, age.err, cy, s.age, test.x, test.y |
character strings giving the
names of the columns representing ages, age error estimates, capture
year, sample ages, x-variable, and y-variable in the |
A list.
Other Bomb Radiocarbon Analyses:
bias.plot.BR()
,
calc.bias()
,
calc.h()
,
closest.pt()
,
get.nearest()
,
get.ref.line()
,
sim.hdist()
data(snapper) snapper.red <- snapper[snapper$C14year >= 1955 & snapper$C14year <= 1972, ] data(bluenose) bluenose.red <- bluenose[bluenose$C14year >= 1955 & bluenose$C14year <= 1972, ] bluenose.red <- bluenose.red[bluenose.red$C14 >= -506 & bluenose.red$C14 <= 94.0, ] ref <- get.ref.line(snapper.red$C14year, snapper.red$C14) hdist <- sim.hdist(ref = snapper.red, test = bluenose.red, nsim = 5000, diag = 0) get.h.from.bias(ref = ref, test = bluenose.red, hdist = hdist, bias.step = 5, bias.range = NULL, age = "age", cy = "catch.year", age.err = "age.err", s.age = "samp.age", test.x = "C14Year", test.y = "C14")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.