Learn R Programming

sensR (version 1.5-2)

dodControl: Control settings for the dod function

Description

Specify control setting when fitting the the Thurstonian Degree-of-Difference (DOD) model using dod and dod_fit.

Usage

dodControl(grad.tol = 1e-4,
           integer.tol = 1e-8,
           get.vcov = TRUE,
           get.grad = TRUE,
           test.args = TRUE,
           do.warn=TRUE,
           optCtrl=list())

Arguments

grad.tol

tolerance for the maximum absolute gradient of the parameters are convergence.

integer.tol

tolerance for when to give a warning about non-integer counts in data.

get.vcov

compute the variance-covariance matrix of the parameters (and the standard error of d-prime)?

get.grad

compute the gradient of the parameters?

test.args

test admissibility of arguments to dod and dod_fit?

do.warn

if FALSE warnings from the fitting process are suppressed.

optCtrl

control parameters passed on to the nlminb optimizer.

Value

An list of class dodControl with the appropriate control settings for dod and dod_fit.

See Also

dod, dod_fit, dodSim, dodPwr, optimal_tau,

Examples

Run this code
# NOT RUN {
## DOD example data:
same.pairs <- c(25, 22, 33, 20)
diff.pairs <- c(18, 22, 30, 30)

## Fit Thurstonian dod-model and perform difference test:
dod(same=same.pairs, diff=diff.pairs)

## Display the fitting process using the trace argument to nlminb:
ctrl <- dodControl(optCtrl=list(trace=TRUE))
dod(same=same.pairs, diff=diff.pairs, control=ctrl)

# }

Run the code above in your browser using DataLab