Description Usage Arguments Value Examples
Function to fit the model.
1 2 3 4 5 6 7  | fitthemodel(
  Sparameters_i,
  fitmodelsavepath,
  TtableANAto0,
  redocomputationsevenifexists = FALSE,
  treeplotsavefolder = NULL
)
 | 
Sparameters_i | 
 an element of the list output from Sparameters.default.f  | 
fitmodelsavepath | 
 a folder path. Results will either be read from or stored in this folder. If the file exists, by default it is not replaced.  | 
TtableANAto0 | 
 a table containing the predictors without NAs as well as the outcome  | 
a list.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  | #Load the data
data(TtableA,package="BigSyn")
#define parameters
Sparameters<-Sparameters.default.f(ref.table=TtableA)
Sparameters_i<-Sparameters[[53]]; 
fitmodelsavepath<-NULL; 
TtableANAto0<-NAto0(TtableA);
redocomputationsevenifexists<-FALSE
treeplotsavefolder=tempdir()
#fit the model:
fitthemodel(Sparameters_i,fitmodelsavepath = NULL,TtableANAto0 = TtableANAto0,
            treeplotsavefolder=tempdir())
Sparameters_i<-Sparameters[["AA.present_La_La_Lrn1"]]; 
treeplotsavefolder=tempdir()
fitthemodel(Sparameters_i,NULL,TtableANAto0,treeplotsavefolder=tempdir())
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.