dif_delta: Creating Tolerance interval for a vector of delta values

Description Usage Arguments Details Author(s) Examples

View source: R/dif_delta.R

Description

Create a tolerance interval for difference delta values

Usage

1
dif_delta(data = data, delta = seq(0.01,0.05, by = 0.01), alpha = 0.05,...)

Arguments

data

data to be used

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 calculate the mrl for all values given in the vector for the parameter delta. It will then provide you with the amount of cows that would be said to be safe to milk at different milking times. If there are any cows that do have a different safe milking time then it will stop, if not it will just give the TTSC for the first delta value

Author(s)

Cathal Ryan

Examples

1
2
Using pre installed dataset pred_table:
dif_delta(data = pred_table, cows = 25, amount = 8, delta = c(0.05,0.1), alpha = 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.