fitGSS: a function to model curves using smoothing splines anova...

Description Usage Arguments Details Value See Also Examples

View source: R/smoothingSplinesModel.R

Description

this function models each curve of genotype using smoothing splines anova

Usage

1
fitGSS(datain, trait, loopId)

Arguments

datain

input dataframe

trait

character, trait of interest to model (example biovolume, PH ...)

loopId

a column name that contains ident of Genotype-Scenario

Details

the input dataframe must contain the following columns: the trait to model, the ident of Genotype-Scenario, thermalTime, repetition columns

Each time course is modelled by a nonparametric smoothing spline. This is a piecewise cubic polynomial (Eubank, 1999). Then a functional ANOVA decomposition (Gu, 2014) of all the fitted splines for each genotype by environmental treatment combination is realised, by taking into account the replicate effect and a temporal functional effect. The smoothing spline fitting and the functional ANOVA decompositions are be performed with the gss R package.

Value

a list containing 2 objects

a list of each output of ssanova

a dataframe of kullback-Leibler projection

See Also

project.ssanova, ssanova

Examples

1
2
3
4
data(plant1)
selec<-c("Lo1199_H","Lo1124_H","Lo1038_H","A3_H")
mydata<-plant1[plant1[,"genotypeAlias"] %in% selec,]
 fm1<-fitGSS(datain=mydata,trait="biovolume",loopId="genotypeAlias")

sanchezi/openSilexStatR documentation built on Sept. 10, 2020, 1:03 p.m.