fitSpATS: fitSpATS

Description Usage Arguments Details Value See Also Examples

View source: R/spatialModel.R

Description

a function to model curves using a spatial P-Spline modelling using SpATS library

Usage

1
2
fitSpATS(datain, trait, genotypeId, rowId, colId, typeModel = "anova",
  genotype.as.random = FALSE, nseg = c(14, 30), verbose)

Arguments

datain

input dataframe of parameters

trait

character, parameter of interest (ex: Biomass24)

genotypeId

character, column name of genotype alias

rowId

character, column name of the row id in the lattice (greenhouse or field)

colId

character, column name of the column id in the lattice (greenhouse or field)

typeModel

character, choice of the spatial P-Spline model, anova or sap

genotype.as.random

logical. If TRUE, the genotype is included as random effect in the model. The default is FALSE.

nseg

numerical vector of length 2 containing the number of segments for each marginal (strictly nseg - 1 is the number of internal knots in the domain of the covariate). Atomic values are also valid, being recycled. Default set to c(14,30)

verbose

logical FALSE by default, if TRUE display information about the progress

Details

the input dataset must contain Position,Line,Ref,scenario,genotypeAlias columns

Value

a SpATS object

See Also

SpATS, PSANOVA and SAP

Examples

1
2
3
4
 library(phisStatR)
 mydata<-plant4
 test<-fitSpATS(datain=mydata,trait="Biomass24",genotypeId="genotypeAlias",rowId="Line",
       colId="Position",typeModel="anova",genotype.as.random=FALSE,nseg=c(14,30),verbose)

sanchezi/phisStatR documentation built on Nov. 14, 2019, 7:10 p.m.