calculate_model | R Documentation |
calculate_model
is used to return the best model function that
represent the relationship between responses from study x and y.
calculate_model(x, y, select.MD = door_default_values("select.MD"))
x, y |
data vectors from study x and y (can contain NA) |
select.MD |
logical, if TRUE, only the best model function (in terms of MD) will be returned. |
calculate_model
chooses the best model function from following: linear,
exponential function, sigmoid, asymptotic model with x intercept, asympototic
model with y intercept and their inverse versions. (If your are interested in
these functions please check the sources at
https://github.com/Dahaniel/DoOR.functions)
Shouwen Ma <shouwen.ma@uni-konstanz.de>
Daniel Münch <daniel.muench@uni-konstanz.de>
# load a data set
library(DoOR.data)
data(Or35a)
# pick 2 data sets for Or35a and rescale the data [0,1]
x <- door_norm(Or35a[,6])
y <- door_norm(Or35a[,9])
# run calculate_model
calM_xy <- calculate_model(x,y, select.MD = door_default_values("select.MD"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.