View source: R/plotEstimator.R
plotEstimator | R Documentation |
Computes and plots the estimated PDF/CDF/QF curves.
plotEstimator(object, X, ...)
object |
An object of class |
X |
A row vector indicating covariate values for which the conditional PDF/CDF/QF is computed and plotted. |
... |
Arguments passed on to
|
A ggplot
object.
set.seed(919) n <- 200 X <- rbinom(n, 1, 0.5) Y <- rnorm(n, X, 0.8) control <- list(iter = 200, warmup = 150, thin = 1) fit <- SPQR(X = X, Y = Y, method = "MCMC", control = control, normalize = TRUE, verbose = FALSE) ## plot estimated PDF plotEstimator(fit, type = "PDF", X = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.