PTMLocScaleDataGen.sample()

PTMLocScaleDataGen.sample()#

PTMLocScaleDataGen.sample(key, nobs)[source]#

Draws random samples from the transformation model implied by shape, loc(), and scale().

If location and/or scale functions were defined, samples covariate values first using sample_covariates(), then samples response values.

Parameters:
  • key (Any) – A jax.random.PRNGKey for reproducibility.

  • nobs (int) – Number of samples to draw

Return type:

dict[str, Any]

Returns:

  • A dictionary, holding the samples in the key "y" and the sampled covariates

  • in "x", next to more information about the samples.