quali_model {seedreg}R Documentation

Analysis: generalized linear models for factor qualitative

Description

Performs the deviance analysis for the generalized linear model using binomial or quasibinomial family. The function also returns multiple comparison test with tukey adjustment

Usage

quali_model(
  trat,
  resp,
  method = "glm",
  n = 50,
  family = "binomial",
  ylab = "Germination (%)",
  xlab = expression("Temperature ("^"o" * "C)"),
  reversed = TRUE,
  angle = 0,
  sup = NA,
  theme = theme_classic(),
  font.family = "sans",
  geom = "bar"
)

Arguments

trat

Numerical or complex vector with treatments

resp

Numerical vector containing the response in percentage of the experiment.

method

method for analysis (analysis of variance - aov or analysis by generalized linear model - glm)

n

Number of seeds per repetition

family

a description of the error distribution and link function to be used in the model. For glm this can be a character string naming a family function, a family function or the result of a call to a family function.

ylab

Variable response name (Accepts the expression() function)

xlab

treatments name (Accepts the expression() function)

reversed

Letter order (default is FALSE)

angle

x-axis scale text rotation

sup

Number of units above the standard deviation or average bar on the graph

theme

ggplot2 theme (default is theme_bw())

font.family

Font family (default is sans)

geom

type of graph ("bar" or "point")

Value

The function returns analysis by glm (binomial or quasibinomial family), post-hoc and column graph

Examples

library(seedreg)
data("aristolochia")
attach(aristolochia)
quali_model(trat, germ, n=25, family="quasibinomial")

[Package seedreg version 1.0.3 Index]