fit {CopulaDTA} | R Documentation |
A function to fit the model.
fit(object, ...)
## S4 method for signature 'cdtamodel'
fit(
object,
data,
SID,
cores = 3,
chains = 3,
iter = 6000,
warmup = 1000,
thin = 10,
...
)
object |
A cdtamodel object created by cdtamodel function. |
... |
Other optional parameters as specified in stan. |
data |
A data-frame with no missing values containing TP, TN, FP, FN, 'SID' and co-variables(if necessary). |
SID |
A string indicating the name of the column with the study identifier. |
cores |
A positive numeric values specifying the number of cores to use to execute parallel sampling. When the hardware has more at least 4 cores, the default is 3 cores and otherwise 1 core. |
chains |
A positive numeric value specifying the number of chains, default is 3. |
iter |
A positive numeric value specifying the number of iterations per chain. The default is 6000. |
warmup |
A positive numeric value (<iter) specifying the number of iterations to be discarded(burn-in/warm-up). The default is 1000. |
thin |
A positive numeric value specifying the interval in which the samples are stored. The default is 10. |