View source: R/DBCglm_function.R
DBC.glm | R Documentation |
Statistical analysis of experiments conducted in a randomized block design using a generalized linear model. It performs the deviance analysis and the effect is tested by a chi-square test. Multiple comparisons are adjusted by Tukey.
DBC.glm(
trat,
block,
response,
glm.family = "binomial",
quali = TRUE,
alpha.f = 0.05,
alpha.t = 0.05,
geom = "bar",
theme = theme_classic(),
sup = NA,
ylab = "Response",
xlab = "",
fill = "lightblue",
angle = 0,
family = "sans",
textsize = 12,
labelsize = 5,
dec = 3,
addmean = TRUE,
errorbar = TRUE,
posi = "top",
point = "mean_sd",
angle.label = 0
)
trat |
Numerical or complex vector with treatments |
block |
Numerical or complex vector with blocks |
response |
Numerical vector containing the response of the experiment. Use cbind(resp, n-resp) for binomial or quasibinomial family. |
glm.family |
distribution family considered (default is binomial) |
quali |
Defines whether the factor is quantitative or qualitative (default is qualitative) |
alpha.f |
Level of significance of the F test (default is 0.05) |
alpha.t |
Significance level of the multiple comparison test (default is 0.05) |
geom |
Graph type (columns, boxes or segments) |
theme |
ggplot2 theme (default is theme_classic()) |
sup |
Number of units above the standard deviation or average bar on the graph |
ylab |
Variable response name (Accepts the expression() function) |
xlab |
Treatments name (Accepts the expression() function) |
fill |
Defines chart color (to generate different colors for different treatments, define fill = "trat") |
angle |
x-axis scale text rotation |
family |
Font family |
textsize |
Font size |
labelsize |
Label size |
dec |
Number of cells |
addmean |
Plot the average value on the graph (default is TRUE) |
errorbar |
Plot the standard deviation bar on the graph (In the case of a segment and column graph) - default is TRUE |
posi |
Legend position |
point |
Defines whether to plot mean ("mean"), mean with standard deviation ("mean_sd" - default) or mean with standard error (default - "mean_se"). |
angle.label |
label angle |
Gabriel Danilo Shimizu, shimizu@uel.br
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
data("aristolochia")
attach(aristolochia)
# Assuming the same aristolochia data set, but considering randomized blocks
bloco=rep(paste("B",1:16),5)
resp=resp/2
DBC.glm(trat,bloco, cbind(resp,50-resp), glm.family="binomial")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.