Description Usage Arguments Value
Generate samples from conditional distribution defined by a (generalized) linear model.
1 2 | ## S3 method for class 'lm'
condlSample(object, newdata, quantile = "random")
|
object |
a lm object (including glm and gam). If a glm/gam, its family must be gaussian, binomial, poisson, or gamma. |
newdata |
As in predict.lm, predict.glm, etc. An optional data.frame to use for generating conditional distribution parameters. If omitted, the fitted values are used. |
quantile |
vector of quantiles to which the returned values will correspond. If the default, 'random' is not used, this must be numeric on (0, 1). |
Numeric vector containing conditional random sample (if ‘quantile = ’random'') or conditional quantiles from condition distribution defined by 'object' and 'newdata'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.