ctStanSubjectPars {ctsem} | R Documentation |
Extract an array of subject specific parameters from a ctStanFit object.
Description
Extract an array of subject specific parameters from a ctStanFit object.
Usage
ctStanSubjectPars(fit, pointest = TRUE, cores = 2, nsamples = "all")
Arguments
fit |
fit object |
pointest |
if TRUE, returns only the set of individual difference parameters based on the max a posteriori estimate (or the median if sampling approaches were used). |
cores |
Number of cores to use. |
nsamples |
Number of samples to calculate parameters for. Not used if pointest=TRUE. |
Details
This function returns the estimates of individual parameters, taking into account any covariates and random effects.
Value
an nsamples by nsubjects by nparams array.
Examples
indpars <- ctStanSubjectPars(ctstantestfit)
dimnames(indpars)
plot(indpars[1,,'cint1'],indpars[1,,'cint2'])
[Package ctsem version 3.10.4 Index]