PDIFF | R Documentation |
Estimates pairwise differences by a common method.
PDIFF(Formula, Data, Term, conf.level=0.95, adj="lsd", ref, PLOT=FALSE,
reverse=FALSE, ...)
Formula |
a conventional formula for a linear model |
Data |
a |
Term |
a factor name to be estimated |
conf.level |
confidence level of confidence interval |
adj |
"lsd", "tukey", "scheffe", "bon", "duncan", or "dunnett" to adjust p-value and confidence limit |
ref |
reference or control level for Dunnett test |
PLOT |
whether to plot or not the diffogram |
reverse |
reverse A - B to B - A |
... |
arguments to be passed to |
It corresponds to PDIFF option of SAS PROC GLM.
Returns a table of expectations, t values and p-values. Output columns may vary according to the adjustment option.
Estimate |
point estimate of the input linear contrast |
Lower CL |
lower confidence limit |
Upper CL |
upper confidence limit |
Std. Error |
standard error of the point estimate |
t value |
value for t distribution |
Df |
degree of freedom |
Pr(>|t|) |
probability of larger than absolute t value from t distribution with residual's degree of freedom |
Kyun-Seop Bae k@acr.kr
LSM
, Diffogram
PDIFF(uptake ~ Type*Treatment + as.factor(conc), CO2, "as.factor(conc)")
PDIFF(uptake ~ Type*Treatment + as.factor(conc), CO2, "as.factor(conc)", adj="tukey")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.