Learn R Programming

ammiBayes (version 2.1-1)

detect.interaction: Detect GxE interaction

Description

Run the AMMI Bayesian model for continuous data.

Usage

detect.interaction(model, type="gen", conf=0.95)

Arguments

model

An object ammiBayes

type

Defines the genotypes ("gen") or environments ("env") to be detected with interaction. By default is genotype.

conf

Define the probability of the area of confidence. By default is 0.95.

Author

Luciano A. Oliveira
Carlos P. Silva
Cristian T. E. Mendes
Alessandra Q. Silva
Joel J. Nuvunga
Marcio Balestre
Larissa C. V. Boas
Julio S. S. Bueno-Filho
Fabio M. Correa

Examples

Run this code

library(ammiBayes)
data(ammiData)

Env  <- factor(ammiData$amb)
Rep <- factor(ammiData$rep)
Gen  <- factor(ammiData$gen)
Y  <- ammiData$prod

model <- ammiBayes(Y=Y, Gen=Gen, Env=Env, Rep=Rep, iter=10, 
									 burn=1, jump=2, chains=2)

# detect.interaction(model)

Run the code above in your browser using DataLab