View source: R/precision_functions.R
perc.agr | R Documentation |
perc.agr
calculates the percent agreement of two sets of age reads on
the same fish. This function will calculate the percent agreement from
+/- 0 years to +/- the number of years defined by levels
,
by 1 year increments.
perc.agr(Data, levels = 2)
Data |
Numeric data frame, with no |
levels |
Numeric integer representing the maximum number of years you want to consider for the percent agreement analysis |
Object of class data.table
and
data.frame
containing the percent agreement metrics for
each year from +/- years to levels
. The data.table
will contain four columns:
+/- number of years considered for percent agreement calculation
total sample size for the analysis
# of samples agreed upon by the readers, given that scale
proportinal agreement among the individual age reads
#Example - RedPorgy Dataset data(RedPorgy) perc.agr(na.exclude(RedPorgy[, c(1, 2)]), levels = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.