quali_model: Analysis: generalized linear models for factor qualitative

Description Usage Arguments Value Examples

View source: R/quali_model.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
quali_model(
  trat,
  resp,
  n = 50,
  family = "binomial",
  ylab = "Germination (%)",
  xlab = expression("Temperature ("^"o" * "C)"),
  reversed = TRUE,
  angle = 0,
  sup = NA,
  theme = theme_classic()
)

Arguments

trat

Numerical or complex vector with treatments

resp

Numerical vector containing the response in percentage of the experiment.

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())

Value

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

Examples

1
2
3
4
library(seedreg)
data("aristolochia")
attach(aristolochia)
quali_model(trat, resp, n=25, family="quasibinomial")

AgronomiaR/seedreg documentation built on May 19, 2021, 12:12 p.m.