Description Usage Arguments Details Author(s) Examples
This function can be used to provide results from all other functions within Tolerance
1 | TTSC_check(data, cows, amount, alpha, delta, y_variable, time_variable, mrl)
|
data |
the dataset to be used, can also use one of the pre-installed datasets in this package |
cows |
the amount of cows in the dataset |
amount |
the amount of milkings per cow |
alpha |
the alpha value to be used for Tolerance, Confidence or Prediction upper bounds |
delta |
the delta value to be used for the two different types of Tolerance intervals |
mrl |
Maximum Residue Limit allowed within the milk of each cow |
y_variable |
column number for the y_variable to be used in calculating the TTSC |
time_variable |
column number referencing the variable that shows the time at which each milking occured |
Natrella_tolerance_instead |
(optional) Defaults to FALSE. If set to TRUE, tolerance upper bound is calculated using Natrella's method instead |
PredAswell |
(optional) Defaults to FALSE. If set to TRUE, a prediction upper bound will also be provided |
ConfidenceAswell |
(optional) Defaults to FALSE. If set to TRUE, a confidence upper bound will also be provided |
This function will give out a seperate numerical time for each seperate cow and also the difference between each milking time
Cathal Ryan
1 2 3 4 | Using pre installed dataset pred_table:
TTSC_check(data = pred_table, cows = 25, amount = 8,
alpha = 0.05, delta = 0.05, y_variable = 6,
time_variable = 3, mrl = log(0.04))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.