conf_upper: Calculates upper confidence limit for TTSC

Description Usage Arguments Details Author(s) Examples

View source: R/conf_upper.R

Description

Calculates a upper Confidence limit for the TTSC given a certain dataset and alpha value

Usage

1
conf_upper(data, alpha, y_variable, time_variable, mrl, cows, amount,....)

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

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 provides a upper confidence bound with level alpha for the data and provides the TTSC to accompany it.

Author(s)

Cathal Ryan

Examples

1
2
Using pre installed dataset pred_table:
conf_upper(data = pred_table, cows = 25, amount = 8, 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.