Description Usage Arguments Value Author(s) Examples
The main results are the estimate of potency with confidence interval and the anova table with tests of regression, parallelism and linearity. The anova table can also have test of effect of blocks for Randomized Block Design, and test of row and column for Latin Square Design.
Further the restricted and unrestricted models are fitted without effects of row, columns, and blocks.
The models are fitted by lm, in combination with the function pheur325.
Results are listed directly, or returned in an object. These results
can be typeset by LaTex
- directly, or by the use of the
package xtable
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | fit(object, ...)
pla.fit(data,
sampleLabels = levels(unlist(data["Sample"])),
indexOfReference = 1,
StdName = sampleLabels[indexOfReference],
design = "blocks",
dfAdj = 0,
dr = 2,
factor = 1,
alpha = 0.05,
main = "Parallel Line Model",
tag = "PLA",
expectedAnova = NULL,
expectedPotency = NULL,
formatTests = "long",
show = FALSE,
sink = FALSE,
Sweave = FALSE,
printPotencyEstimates = TRUE,
returnPotencyEstimates = TRUE)
|
object |
Object of class pla-class. |
... |
Arguments from |
data |
The data.frame with relevant variables - created by data2assayFrame or assayTable2frame. |
main |
A character string giving with the main title for plot (created by pla.plots). |
tag |
A character string giving a part of names of
output-files, see e.g. |
design |
|
dr |
The dilution ratio of the equally spaced dilutions. |
dfAdj |
The needed adjustment of the number of degrees of freedom, if data are corrected for blocks, rows or columns before applying the model of the completely randomized design on block designs, or if values are imputed. |
sampleLabels |
A vector of character strings giving the labels of the |
indexOfReference |
Index of the reference among the samples
given by |
StdName |
A character string identifying the reference in the
columns |
formatTests |
A vector of character string, |
show |
A logical or subset of "head", "anova", "tests",
"regressions", "ratios", "pheur", "rsquare", "slope",
"logpotency", "potency").
If |
sink |
Output is diverted to
|
alpha |
A numeric (vector), the level of significance for test of
validity, default |
Sweave |
If |
factor |
A numeric (vector) to multiply on the estimated potency. |
expectedAnova |
A numeric matrix with the expected ANOVA table. |
expectedPotency |
A numeric matrix with the expected potency. |
printPotencyEstimates |
If |
returnPotencyEstimates |
If |
No values returned.
Jens Henrik Badsberg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(Turbidimetric); Data <- Turbidimetric
Design <- "blocks"
Data <- readAssayTable(paste(system.file(package = "pla"),
"vignettes/PhEur/data/AntibioticTurbidimetric.txt",
sep = "/"))
Frame <- as.data.frame(Data, dr = 1.5)
fits <- pla.fit(Frame, design = Design, sampleLabels = c("S", "T"),
dr = 1.5, returnPotencyEstimates = TRUE)
## Alternative on object of class 'pla':
plaModel <- plaRBD(Data)
Fits <- fit(plaModel)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.