Learn R Programming

bdots (version 2.0.0)

bdotsFit: Fit nlme curves to grouped observations

Description

DEPRECATED. Use bfit instead

Usage

bdotsFit(
  data,
  subject,
  time,
  y,
  group,
  curveType = doubleGauss(concave = TRUE),
  cor = TRUE,
  ar = 0,
  numRefits = 0,
  cores = 0,
  verbose = FALSE,
  ...
)

Value

Object of class 'bdotsObj', inherits from data.table

Arguments

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

autocorrelation TRUE/FALSE

ar

Value indicates estimate for autocorrelation. A value of zero indicates to fit without AR(1) assumption

numRefits

Integer indicating number of attempts to fit an observation if the first attempt fails

cores

number of cores. Default is 0, indicating half cores available

verbose

currently not used

...

Secret

Details

This function is being deprecated. Use bfit instead

Examples

Run this code
if (FALSE) {
res <- bdotsFit(data = cohort_unrelated,
                subject = "Subject",
                time = "Time",
                y = "Fixations",
                group = c("Group", "LookType"),
                curveType = doubleGauss(concave = TRUE),
                numRefits = 2,
                cores = 0,
                verbose = FALSE)
}

Run the code above in your browser using DataLab