The function parallelismTest
tests the parallelism of a set of standard curves in an immunoassay. It takes two arguments: x
, which is a vector of dilution factors, and y
, which is a matrix of observed values of the assay. The function first calculates the slope and standard error of each standard sample using linear regression. Then it computes the difference and standard error of the difference between every pair of slopes. It also calculates the upper and lower bounds of the confidence interval for the slope differences using the t-distribution.
The function then plots the reference curves and the confidence interval for the slope differences using barplots. The function also finds the maximum absolute value of the confidence interval bounds, which is used as a limit for parallelism.
The function is useful for testing whether the standard samples have parallel slopes, which is an assumption for immunoassay validation. If the confidence interval for any pair of slopes includes zero, then the slopes are not significantly different and parallelism is not violated.
No comments:
Post a Comment