Skip to contents

Returns a parameter type from an emc object as a data frame.

Usage

# S3 method for class 'emc'
parameters(emc, selection = "mu", N = NULL, resample = FALSE, ...)

parameters(emc, ...)

Arguments

emc

An emc object

selection

String designating parameter type (e.g. mu, sigma2, correlation, alpha)

N

Integer. How many samples to take from the posterior. If NULL will return the full posterior

resample

Boolean. If TRUE will sample N samples from the posterior with replacement

...

Optional arguments that can be passed to get_pars

Value

A data frame with one row for each sample (with a subjects column if selection = "alpha")