Nat_tol: Tolerance upper bound for Natrella method

Description Usage Arguments Details Author(s) Examples

View source: R/Nat_tol.R

Description

Calculates the TTSC for a tolerance upper bound using Natrella's method instead of the default method

Usage

1
Nat_tol(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 using Natrella's method to calculate the tolerance upper bound instead of the default method

Author(s)

Cathal Ryan

Examples

1
2
Using pre installed datset pred_table:
Nat_tol(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.