Skip to contents

Main package call for fitting a prepared model that has been created by model.setup

Usage

model.fit(modelobj, LL.method = "cpp", hessian = TRUE, opt.method = "optim")

Arguments

modelobj

A pandista model object

LL.method

A string, either "cpp" (default) or "R" indicating which code module should be used to compute the log likelihood

hessian

A boolean, either TRUE (default) or FALSE, indicating whether the Hessian matrix should be returned

opt.method

A string, either "optim" (default) or "nlm" indicating which R optimization function should be used to optimize the log likelihood