tol_upper: Tolerance Upper bound

Description Usage Arguments Details Author(s) Examples

View source: R/tol_upper.R

Description

Provides the ability to calculate tolerance upper bound on a certain data set and by providing a mrl value you can change how much of the medicine is allowed to be still within a cows milk before its considered safe for human consumption

Usage

1
tol_upper(cows = 20, amount = 10, data = data, alpha = 0.05, ...)

Arguments

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

Details

this function will give out a seperate numerical time value for each seperate cow and also the difference between each milking time

Author(s)

Cathal Ryan

Examples

1
2
Using pre installed datset pred_table:
tol_upper(data = pred_table, cows = 25, amount = 8, alpha = 0.05, delta = 0.05, y_variable = 6, time_variable = 3, mrl = log(0.04))

cathal-ryan-96/Tolerance documentation built on July 30, 2019, 11:04 p.m.