Description Usage Arguments Details Value See Also Examples
View source: R/bayesianSTmodel.R
a function to model curves using a spatio-temporal bayesian modelling using CARBayesST library
1 2  | fitCARBayesST(datain, xvar, trait, k = NULL, graphDist, burnin = 500,
  n.sample = 1500, formulaModel, typeModel = "anova", verbose)
 | 
datain | 
 input dataframe of parameters  | 
xvar | 
 character, time variable (ex: thermalTime)  | 
trait | 
 character, parameter of interest (ex: plantHeight)  | 
k | 
 numeric, number of nearest neighbours to be returned  | 
graphDist | 
 logical, display distance graph  | 
burnin | 
 The number of MCMC samples to discard as the burn-in period  | 
n.sample | 
 The number of MCMC samples to generate  | 
formulaModel | 
 A formula for the covariate part of the model using the syntax of the lm() function. see    | 
typeModel | 
 character, choice of the model,   | 
verbose | 
 logical FALSE by default, if TRUE display information about the progress  | 
the input dataset must contain Position,Line,Ref,scenario,genotypeAlias columns. The function is not generic and needs specific columns names in the input data set. Please have a look of the struture of the data set used in the example.
a list with a spatio-temporal object (CARBayesST) and a dataframe of the formated data
CARBayesST, ST.CARanova and spdep
1 2 3 4 5 6 7 8  |  library(phisStatR)
 mydata<-plant1
 mydata<-filter(mydata,!is.na(mydata$thermalTime))
 str(mydata)
 test<-fitCARBayesST(datain=mydata,xvar="thermalTime",trait="plantHeight",k=2,
     graphDist=TRUE,burnin=10,n.sample=110,
     formulaModel=as.formula(plantHeight~scenario+genotypeAlias),
     typeModel="anova",verbose=FALSE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.