Skip to contents

A single call for synpmx_model_estimate() followed by synpmx_model_generate(). Use the two separately to look at the fit before generating from it; it is on the result either way, as the pmx_fitted_model attribute.

Usage

synpmx_model(data, roles, n_subjects = NULL, seed = NULL, ...)

Arguments

data

Source PMX event data.

roles

Explicit column roles from pmx_roles(), including nominal_time.

n_subjects

Number of synthetic subjects. Defaults to the source count.

seed

Seed, used for both stages.

...

Passed to synpmx_model_estimate().

Value

A data frame in the source's shape, carrying the fitted model as an attribute.