resampling.model {agricolae}R Documentation

Resampling for linear models

Description

This process consists of finding the values of P-value by means of a re-sampling process along with the values obtained by variance analysis.

Usage

resampling.model(k, data, model)

Arguments

k number of re-samplings
data data for the study of the model
model model in R

Value

k constant numeric
data data frame
model model

Author(s)

Felipe de Mendiburu

References

Efron, B., Tibshirani, R. (1993) An Introduction to the Boostrap. Chapman and Hall/CRC

See Also

simulation.model

Examples

#example 1 Simple linear regression
library(agricolae)
data(clay)
model<-"ralstonia ~ days"
analysis<-resampling.model(200,clay,model)

#example 2 Analysis of variance: RCD
data(sweetpotato)
model<-"yield~virus"
analysis<-resampling.model(300,sweetpotato,model)

#example 3 Simple linear regression
data(Glycoalkaloids)
model<-"HPLC ~ spectrophotometer"
analysis<-resampling.model(100,Glycoalkaloids,model)

#example 4 Factorial in RCD

data(potato)
potato[,1]<-as.factor(potato[,1])
potato[,2]<-as.factor(potato[,2])
model<-"cutting~variety + date + variety:date"
analysis<-resampling.model(100,potato,model)


[Package agricolae version 1.0-6 Index]