bdotsFit | R Documentation |
Creates observation level curves to use in bdotsBoot
bdotsFit( data, subject, time, y, group, curveType = doubleGauss(concave = TRUE), cor = TRUE, numRefits = 0, cores = 0, verbose = FALSE, ... )
data |
Dataset used |
subject |
Column name of dataset containing subject identifiers |
time |
Column name containing time variable |
y |
Column name containing outcome of interest |
group |
Character vector containing column names of groups. Can be greater than one |
curveType |
See details/vignette |
cor |
Boolean. Autocorrelation? |
numRefits |
Integer indicating number of attempts to fit an observation if the first attempt fails |
cores |
number of cores. Default is |
verbose |
currently not used |
... |
Secret |
This is step one of the three step bdots process. Things should be more or less straight forward. The only tricky part involves curveType. For now know that one can use doubleGauss(concave = TRUE/FALSE) or logistic(). Should be passed in as a call. See the vignette on customizing this
Object of class 'bdotsObj', inherits from data.table
## Not run: res <- bdotsFit(data = cohort_unrelated, subject = "Subject", time = "Time", y = "Fixations", group = c("Group", "LookType"), curveType = doubleGauss(concave = TRUE), cor = TRUE, numRefits = 2, cores = 0, verbose = FALSE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.