Extract Samples
Generic function to extract samples from objects.
## Generic. samples(object, ...) ## Method for "bamlss" objects. ## S3 method for class 'bamlss' samples(object, model = NULL, term = NULL, combine = TRUE, drop = TRUE, burnin = NULL, thin = NULL, coef.only = FALSE, ...)
object |
An object for which samples should be extracted. |
model |
Character or integer, specifies the model for which samples should be extracted. |
term |
Character or integer, specifies the term for which samples should be extracted. |
combine |
Samples stored as a |
drop |
If there is only one |
burnin |
Integer, specifies the number of samples that should be withdrawn as a burn-in phase. |
thin |
Integer, specifies the step length of samples that should be extracted, e.g.,
|
coef.only |
Logical, should only samples of model coefficients be returned? |
... |
Other arguments. |
## Not run: ## Generate data. d <- GAMart() ## Estimate model. b <- bamlss(num ~ s(x1) + s(x2) + s(x3), data = d) ## Extract samples for "s(x2)". sa <- samples(b, term = "s(x2)") head(sa) ## Trace plot. plot(sa) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.