rescale_var: Rescale quantiles to arbitrary random variable.

View source: R/sample_data_funcs.R

rescale_varR Documentation

Rescale quantiles to arbitrary random variable.

Description

Rescale quantiles to arbitrary random variable.

Usage

rescale_var(U, X, pars, family = 1, link)

rescaleVar(U, X, pars, family = 1, link)

Arguments

U

vector of quantiles

X

model matrix of covariates

pars

list of parameters (see details)

family

family of distributions to use

link

link function

Details

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.

Value

vector of rescaled variables

Functions

  • rescaleVar(): Old name, now deprecated


rje42/causl documentation built on June 1, 2025, 2:50 p.m.