convenience: Convenience functions

Description Usage Arguments Details Value Author(s)

Description

These functions can be used to change some estimator options.

Usage

1
2
3
4
5
6
7
8
setestimator(x, estimator)

setoptimizer(x, optimizer = c("default", "nlminb", "ucminf",
                 "cpp_L-BFGS-B", "cpp_BFGS", "cpp_CG", "cpp_SANN",
                 "cpp_Nelder-Mead"), optim.args)


usecpp(x, use = TRUE)

Arguments

x

A psychonetrics model.

estimator

A string indicating the estimator to be used

optimizer

The optimizer to be used. Can be one of "nlminb" (the default R nlminb function), "ucminf" (from the optimr package), and C++ based optimizers "cpp_L-BFGS-B", "cpp_BFGS", "cpp_CG", "cpp_SANN", and "cpp_Nelder-Mead". The C++ optimizers are faster but slightly less stable. Defaults to "nlminb".

use

Logical indicating if C++ should be used (currently only used in FIML)

optim.args

List of arguments to sent to the optimizer.

Details

The default optimizer is nlminb with the following arguments:

Value

An object of the class psychonetrics (psychonetrics-class)

Author(s)

Sacha Epskamp


psychonetrics documentation built on Oct. 26, 2021, 1:06 a.m.