powered by
Estimates pairwise difference by a common method.
PDIFF(Formula, Data, Term, conf.level=0.95, adj="lsd", ref, PLOT=FALSE)
a conventional formula for a linear model
a data.frame to be analyzed
data.frame
a factor name to be estimated
confidence level of confidence interval
"lsd", "tukey", "scheffe", "bon", "duncan", or "dunnett" to adjust p-value and confidence limit
reference or control level for Dunnett test
whether to plot or not the diffogram
Returns a table of expectations, t values and p-values. Outpuc columns may vary according to the adjustment option.
point estimate of the input linear constrast
lower confidence limit
upper confidence limit
standard error of the point estimate
value for t distribution
degree of freedom
probability of larger than absolute t value from t distribution with residual's degree of freedom
It corresponds to PDIFF option of SAS PROC GLM.
# NOT RUN { PDIFF(uptake ~ Type*Treatment + as.factor(conc), CO2, "as.factor(conc)") PDIFF(uptake ~ Type*Treatment + as.factor(conc), CO2, "as.factor(conc)", adj="tukey") # }
Run the code above in your browser using DataLab