View source: R/sample_data_funcs.R
rescale_var | R Documentation |
Rescale quantiles to arbitrary random variable.
rescale_var(U, X, pars, family = 1, link)
rescaleVar(U, X, pars, family = 1, link)
U |
vector of quantiles |
X |
model matrix of covariates |
pars |
list of parameters (see details) |
family |
family of distributions to use |
link |
link function |
family
can be 1, 2, 3, 4 or 5 for Gaussian, t-distributed,
Gamma distributed, beta distributed or discrete respectively, and 11 for
ordinal variables.
pars
should be a list with entries beta
and
phi
, as well as possibly par2
, trunc
and nlevel
if the family
is set to 2 or 5.
U
should have the same length as X
has rows, and
X
should have the same number of columns as the length of
pars$beta
.
vector of rescaled variables
rescaleVar()
: Old name, now deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.