bdotsRefit {bdots}R Documentation

Refit Observations Returned from bdotsFit

Description

Refit Observations Returned from bdotsFit

Usage

bdotsRefit(
  bdObj,
  fitCode = 1L,
  quickRefit = FALSE,
  numRefits = 2L,
  paramDT = NULL,
  ...
)

Arguments

bdObj

An object of class 'bdotsObj' returned from bdotsFit

fitCode

A length one integer indicating observations to refit. See Details

quickRefit

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.

numRefits

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

paramDT

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

Details

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

Value

Returns bdObj with updated fits


[Package bdots version 1.2.5 Index]