DIC.glm {AgroR} | R Documentation |
Statistical analysis of experiments conducted in a completely randomized 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.
DIC.glm( trat, 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, dec = 3, addmean = TRUE, errorbar = TRUE, posi = "top", point = "mean_sd", angle.label = 0 )
trat |
Numerical or complex vector with treatments |
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 |
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) #============================= # Use the DIC function #============================= DIC(trat, resp) #============================= # Use the DIC function noparametric #============================= DIC(trat, resp, test="noparametric") #============================= # Use the DIC.glm function #============================= resp=resp/4 # ttotal germinated seeds # the value 25 is the total of seeds in the repetition DIC.glm(trat, cbind(resp,25-resp), glm.family="binomial")