Cline.fit(Data, By = NULL, S = NULL, model, Start = NULL, Methods = NULL, iterations = 99, SD = NULL, headstart = TRUE, Grid = FALSE, ploidy = 2, trim = 0, include = 1:ncol(Data))
Data
.
Data
will be used. If S
is specified, the values given by the user trump the default.
NULL
, start values at the 1:1 line are provided by default.
"L-BFGS-B"
, "SANN"
, and "mcmc"
. Default is Methods=list(logit.logistic="L-BFGS-B",Barton="L-BFGS-B",Beta="L-BFGS-B",Richards="L-BFGS-B")
.
"mcmc"
is used for any Methods
.
"mcmc"
and "SANN"
methods. In these methods, new parameter values are proposed by drawing values from normal distributions centered on the current value and with standard deviations from SD
.
method="mcmc"
or "SANN"
, starting values will be found by first using optim
with "L-BFGS-B"
.
method="mcmc"
and model="Beta"
, starting values for the Markov Chain will be found by finding the highest likelihood on a 100 x 100 grid made by mu <- seq(from=0.02,to=0.90,length.out=10); nu <- 2^(0:9)/10
.mean
).D2
, P-value for Mahalanobis-based outlier detection, and TRUE/FALSE declaration of whether a marker is an outlier based on a Bonferroni-adjusted critical P-value. If more than one model was fit, an additional data frame best.fit
is included, giving the model with lowest AIC for each marker.
gcline.fn
for the basic fitting function. Cline.plot
provides an easy way to visualize the output of Cline.fit
.
data(Bluestone)
BS.fit <- Cline.fit(Bluestone[,1:12],model=c("logit.logistic","Barton"))
Cline.plot(BS.fit)
Run the code above in your browser using DataLab