Package: causl 0.9.6

Robin Evans

causl: Methods for Specifying, Simulating from and Fitting Causal Models

Model multivariate distributions using causal parameters.

Authors:Robin Evans [aut, cre], Xi Lin [aut]

causl_0.9.6.tar.gz
causl_0.9.6.zip(r-4.5)causl_0.9.6.zip(r-4.4)causl_0.9.6.zip(r-4.3)
causl_0.9.6.tgz(r-4.4-x86_64)causl_0.9.6.tgz(r-4.4-arm64)causl_0.9.6.tgz(r-4.3-x86_64)causl_0.9.6.tgz(r-4.3-arm64)
causl_0.9.6.tar.gz(r-4.5-noble)causl_0.9.6.tar.gz(r-4.4-noble)
causl_0.9.6.tgz(r-4.4-emscripten)causl_0.9.6.tgz(r-4.3-emscripten)
|causl.html
causl/json (API)
NEWS

# Install 'causl' in R:
install.packages('causl', repos = c('https://mrcieu.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rje42/causl/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

6.50 score 12 stars 33 scripts 59 exports 23 dependencies

Last updated 1 months agofrom:c148245292. Checks:ERROR: 9. Indexed: no.

TargetResultDate
Doc / VignettesFAILNov 13 2024
R-4.5-win-x86_64ERRORNov 13 2024
R-4.5-linux-x86_64ERRORNov 13 2024
R-4.4-win-x86_64ERRORNov 13 2024
R-4.4-mac-x86_64ERRORNov 13 2024
R-4.4-mac-aarch64ERRORNov 13 2024
R-4.3-win-x86_64ERRORNov 13 2024
R-4.3-mac-x86_64ERRORNov 13 2024
R-4.3-mac-aarch64ERRORNov 13 2024

Exports:adj_varsbeta_causl_fambinomial_causl_famcategorical_causl_famcausalSampcausl_modelcheck_parscopula_valsdfgmCopuladGaussCopdGaussDiscCopdtCopfamily_listfamily_valsfamilyValsfit_causlfitCausalGamma_causl_famgaussian_causl_copgaussian_causl_famgen_cop_parsgen_dummy_datget_copulaglm_simis_categoricallhslhs<-linklink_setuplinks_listll_frugalmerge_formulasmodify.causl_modelordinal_causl_fampair_copula_setupprocess_familyprocess_prespecifiedrejectionWeightsrescale_coprescale_varrescaleCoprescaleVarrfgmCopularfrugalrfrugalParamrGaussCoprhs_varsrtCopsim_copsim_copulasim_CopValsim_inversionsim_multisim_variablesim_vinecopsim_Xt_causl_copt_causl_famtidy_formulas

Dependencies:ADGofTestclicolorspacecopulagluegsllatticelifecyclemagrittrMASSMatrixmvtnormnumDerivpcaPPpsplinepurrrRcppRcppArmadillorjerlangstabledistvctrsVineCopula

Comparison of Methods

Rendered fromComparison.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-11-28
Started: 2021-05-31

Copula Simulation

Rendered fromCopulaSimulation.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-09-17
Started: 2021-05-31

Discrete Variables Copula

Rendered fromDiscrete_Variables_Copula.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-08-06
Started: 2023-10-03

Hidden Variables

Rendered fromHidden_Variables.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-10-03
Started: 2021-05-31

Inversion Tutorial

Rendered fromInversion.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-08-06
Started: 2023-10-03

Readme and manuals

Help Manual

Help pageTopics
Adjust values of copula parameters individuallyadj_vars
Sample from a causal modelcausalSamp
Copula family functionscausl_copula gaussian_causl_cop get_copula sim_cop t_causl_cop
Define a 'causl_model' objectcausl_model
Check parameters for univariate familiescheck_pars check_rej
Density of a multivariate copulacopula_density dfgmCopula dGaussCop dtCop
Vectorized conditional copula functioncVCopula
Density of a Mixed CopuladGaussDiscCop
Extract parameter estimates and standard errorsests_ses
Obtain list of family functionsfamily_list
Numbers for parametric familiescopula_vals familyVals family_vals
Fit multivariate copula regression modelfitCausal fit_causl
Tools for manipulating formulasformula_tools lhs lhs<- rhs_vars tidy_formulas
Function to generate random copula parameters for simulationgen_cop_pars
Generate a dummy datasetgen_dummy_dat
Return causl_fam function from integer indexbeta_causl_fam binomial_causl_fam categorical_causl_fam Gamma_causl_fam gaussian_causl_fam get_family ordinal_causl_fam t_causl_fam
Get maximum weight for each segment of a distributionget_max_weights
Get density of treatmentsget_X_density
Get univariate densities and uniform order statisticsglm_dens univarDens
Simulate from a GLMglm_sim
Check if family is categoricalis_categorical
Default methodlink
Set up link functionslink_setup
Obtain link from a 'causl_family' or 'causl_copula' obectlink.causl_copula link.causl_family
List of link functions for copuulaslinks_cop
List of links available for each parametric familylinksList links_list
Log-likelihood for frugal parameterizationll_frugal
Combine multiple formulasmerge_formulas
Modify 'causl_model' objectmodify.causl_model
Negative log-likelihoodnll2
Sets up copula quantities onlypair_copula_setup
Get parameter masks for regression parameterspar_masks
Display output from 'causl_model'print.causl_model
Obtain univariate densitiesprocess_discrete_dens
Process formulas, families and parametersprocess_family process_formulas process_inputs
Obtain quantiles for prespecified variablesprocess_prespecified
Get weights for rejection samplingrejectionWeights
Rescale quantiles to conditional copularescaleCop rescale_cop
Rescale quantiles to arbitrary random variable.rescaleVar rescale_var
Sample from a causal modelrfrugal rfrugalParam
Sample from multivariate copulasrfgmCopula rGaussCop rtCop sample_copulas
Simulate copula valuessim_copula sim_CopVal
Simulate for single time-stepsim_inversion sim_multi sim_rejection
Simulate a single variable using the inversion methodsim_variable
Simulate from vine copulasim_vinecop
Simulate initial X valuessim_X
Transform categorical or ordinal parameters into probabilitiestheta_to_p_cat theta_to_p_ord
Obtain variable ordering from formulasvar_order