sim_copula: Simulate copula values

View source: R/sample_data_funcs.R

sim_copulaR Documentation

Simulate copula values

Description

Simulate copula values

Usage

sim_copula(dat, family, par, par2, model_matrix)

sim_CopVal(dat, family, par, par2, model_matrix)

Arguments

dat

data frame with empty columns

family

numeric indicator of copula type

par

mandatory parameters

par2

optional parameters

model_matrix

design matrix for covariates

Details

Returns data frame containing columns y and z1, ..., zk.

The family variables are numeric and taken from VineCopula. Use, for example, 1 for Gaussian, 2 for t, 3 for Clayton, 4 for Gumbel, 5 for Frank, 6 for Joe and 11 for FGM copulas.

Value

A data frame of the same dimension as dat containing the simulated values.

Functions

  • sim_CopVal(): Old name, now deprecated


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