bdotsRefit: Refit Observations Returned from bdotsFit

View source: R/bdotsRefit.R

bdotsRefitR Documentation

Refit Observations Returned from bdotsFit


Refit Observations Returned from bdotsFit


  fitCode = 1L,
  quickRefit = FALSE,
  numRefits = 2L,
  paramDT = NULL,



An object of class 'bdotsObj' returned from bdotsFit


A length one integer indicating observations to refit. See Details


Boolean indicating if a quick refit should be used. If TRUE, rather than prompting the user for adjustments for each observation, bdotsReft will jitter the parameters of all observations indicated by fitCode and attempt to refit. Between the original and the refitted curve, this will place priority on the higher fitCode. If these are equal, R2 will take precedence. Otherwise, the original fit will be kept.


Integer indicating the number of refit attempts after jittering parameters, either with quickRefit or when done individually


A data.table or data.frame that matches the what is returned by coefWriteout(bdObj). That is, it should have columns uniquely identifying observations with subjects and groups, as well as named columns for the paramters. NA parameters are OK. Can also be a subset of the original rows. Note, if this argument is not NULL, the remaining arguments will be ignored.


not used


fitCode indicates lower bound on observations to refit. For example, if fitCode = 4, bdotsRefit will prompt user to refit all observations with fitCode = 4, 5, 6. The quickRit option will attempt to jitter and refit all observations selected by fitCode. Otherwise, the user will be prompted through a menu to individually refit observations


Returns bdObj with updated fits

bdots documentation built on Jan. 7, 2023, 1:18 a.m.