{
  "_id": "6a141f70acfb0bcc41d3e296",
  "Package": "covalchemy",
  "Title": "Constructing Joint Distributions with Control Over Statistical\nProperties",
  "Version": "1.0.0",
  "Authors@R": "c(person(\"Naman\", \"Agrawal\", email = \"naman.agr03@gmail.com\", role = c(\"aut\", \"cre\")))",
  "Description": "Synthesizing joint distributions from marginal densities,\nfocusing on controlling key statistical properties such as\ncorrelation for continuous data, mutual information for\ncategorical data, and inducing Simpson's Paradox. Generate\ndatasets with specified correlation structures for continuous\nvariables, adjust mutual information between categorical\nvariables, and manipulate subgroup correlations to\nintentionally create Simpson's Paradox.",
  "References": "Joe (1997) \"Multivariate Models and Dependence Concepts\"\n<doi:10.1201/b13150> Sklar (1959)\n<https://en.wikipedia.org/wiki/Sklar%27s_theorem>",
  "Encoding": "UTF-8",
  "License": "GPL-3",
  "Roxygen": "list(markdown = TRUE)",
  "BugReports": "https://github.com/namanlab/covalchemy/issues",
  "URL": "https://github.com/namanlab/covalchemy",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake make libuv1-dev libssl-dev libx11-dev\nzlib1g-dev",
  "Repository": "https://namanlab.r-universe.dev",
  "Date/Publication": "2024-11-20 11:27:41 UTC",
  "RemoteUrl": "https://github.com/namanlab/covalchemy",
  "RemoteRef": "HEAD",
  "RemoteSha": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-25 10:04:12 UTC",
    "User": "root"
  },
  "Author": "Naman Agrawal [aut, cre]",
  "Maintainer": "Naman Agrawal <naman.agr03@gmail.com>",
  "MD5sum": "804f1105becf724cd27f091fbe85354a",
  "_user": "namanlab",
  "_type": "src",
  "_file": "covalchemy_1.0.0.tar.gz",
  "_fileid": "50bbf38b6686d23a78cd607b5930581eae2e8ef562b217c8e2e27ae349aac33b",
  "_filesize": 52597,
  "_sha256": "50bbf38b6686d23a78cd607b5930581eae2e8ef562b217c8e2e27ae349aac33b",
  "_created": "2026-05-25T10:04:12.000Z",
  "_published": "2026-05-25T10:07:44.351Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77693255928,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7196091785"
    },
    {
      "job": 77693255954,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7196092229"
    },
    {
      "job": 77693255942,
      "time": 173,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7196085182"
    },
    {
      "job": 77693255948,
      "time": 145,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7196078717"
    },
    {
      "job": 77692824122,
      "time": 204,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7196047733"
    },
    {
      "job": 77693255937,
      "time": 138,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7196082247"
    },
    {
      "job": 77693256010,
      "time": 124,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7196079093"
    },
    {
      "job": 77693256040,
      "time": 129,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7196080179"
    },
    {
      "job": 77693255915,
      "time": 141,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7196083072"
    }
  ],
  "_buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/namanlab/covalchemy",
  "_commit": {
    "id": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
    "author": "Naman Agrawal <74598030+namanlab@users.noreply.github.com>",
    "committer": "Naman Agrawal <74598030+namanlab@users.noreply.github.com>",
    "message": "modified stanadrads\n",
    "time": 1732102061
  },
  "_maintainer": {
    "name": "Naman Agrawal",
    "email": "naman.agr03@gmail.com",
    "login": "namanlab",
    "description": "",
    "uuid": 74598030
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "interp",
      "role": "Imports"
    },
    {
      "package": "clue",
      "role": "Imports"
    },
    {
      "package": "ggExtra",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "DescTools",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    }
  ],
  "_owner": "namanlab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "namanlab",
      "count": 9,
      "uuid": 74598030
    }
  ],
  "_userbio": {
    "uuid": 74598030,
    "type": "user",
    "name": "Naman Agrawal"
  },
  "_downloads": {
    "count": 169,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/covalchemy"
  },
  "_devurl": "https://github.com/namanlab/covalchemy",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/covalchemy.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/namanlab/covalchemy",
  "_realowner": "namanlab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-11-21"
    }
  ],
  "_exports": [
    "augment_matrix_random_block",
    "calculate_tv_distance_empirical",
    "entropy_pair",
    "gaussian_copula_two_vars",
    "gen_number_1",
    "gen_number_max",
    "gen_number_min",
    "genCDFInv_akima",
    "genCDFInv_linear",
    "genCDFInv_poly",
    "genCDFInv_quantile",
    "generate_gaussian_copula_samples",
    "generate_t_copula_samples",
    "get_mutual_information",
    "get_optimal_grid",
    "get_simpsons_paradox_c",
    "get_simpsons_paradox_d",
    "get_target_corr",
    "get_target_entropy",
    "log_odds_dc",
    "objective_function_SL",
    "plot_log_odds",
    "simulated_annealing_MI",
    "simulated_annealing_SL",
    "sinkhorn_algorithm",
    "softmax",
    "t_copula_two_vars"
  ],
  "_help": [
    {
      "page": "augment_matrix_random_block",
      "title": "Augment Matrix with Random 2x2 Block Adjustment",
      "topics": [
        "augment_matrix_random_block"
      ]
    },
    {
      "page": "calculate_tv_distance_empirical",
      "title": "Calculate Total Variation (TV) Distance Empirically",
      "topics": [
        "calculate_tv_distance_empirical"
      ]
    },
    {
      "page": "entropy_pair",
      "title": "Calculate Entropy of a Pair",
      "topics": [
        "entropy_pair"
      ]
    },
    {
      "page": "gaussian_copula_two_vars",
      "title": "Generate Gaussian Copula Samples for Two Variables",
      "topics": [
        "gaussian_copula_two_vars"
      ]
    },
    {
      "page": "gen_number_1",
      "title": "Generate a New Number for Stepwise Modification",
      "topics": [
        "gen_number_1"
      ]
    },
    {
      "page": "gen_number_max",
      "title": "Generate a New Number for Maximizing Mutual Information",
      "topics": [
        "gen_number_max"
      ]
    },
    {
      "page": "gen_number_min",
      "title": "Generate a New Number for Minimizing Mutual Information",
      "topics": [
        "gen_number_min"
      ]
    },
    {
      "page": "genCDFInv_akima",
      "title": "Generate an Inverse CDF Function Using Akima Spline Interpolation",
      "topics": [
        "genCDFInv_akima"
      ]
    },
    {
      "page": "genCDFInv_linear",
      "title": "Generate an Inverse CDF Function Using Linear Interpolation",
      "topics": [
        "genCDFInv_linear"
      ]
    },
    {
      "page": "genCDFInv_poly",
      "title": "Generate an Inverse CDF Function Using Polynomial Regression",
      "topics": [
        "genCDFInv_poly"
      ]
    },
    {
      "page": "genCDFInv_quantile",
      "title": "Generate an Inverse CDF Function Using Quantiles",
      "topics": [
        "genCDFInv_quantile"
      ]
    },
    {
      "page": "generate_gaussian_copula_samples",
      "title": "Generate Gaussian Copula Samples",
      "topics": [
        "generate_gaussian_copula_samples"
      ]
    },
    {
      "page": "generate_t_copula_samples",
      "title": "Generate t-Copula Samples",
      "topics": [
        "generate_t_copula_samples"
      ]
    },
    {
      "page": "get_mutual_information",
      "title": "Calculate Mutual Information",
      "topics": [
        "get_mutual_information"
      ]
    },
    {
      "page": "get_optimal_grid",
      "title": "Get Optimal Grid Assignment",
      "topics": [
        "get_optimal_grid"
      ]
    },
    {
      "page": "get_simpsons_paradox_c",
      "title": "Simpson's Paradox Transformation with Copula and Simulated Annealing",
      "topics": [
        "get_simpsons_paradox_c"
      ]
    },
    {
      "page": "get_simpsons_paradox_d",
      "title": "Introduce Simpson's Paradox in Discrete Data",
      "topics": [
        "get_simpsons_paradox_d"
      ]
    },
    {
      "page": "get_target_corr",
      "title": "Generate Samples with Target Kendall's Tau Correlation Using a Copula Approach",
      "topics": [
        "get_target_corr"
      ]
    },
    {
      "page": "get_target_entropy",
      "title": "Get Target Entropy",
      "topics": [
        "get_target_entropy"
      ]
    },
    {
      "page": "log_odds_dc",
      "title": "Log-Odds Calculation for Concordant and Discordant Pairs",
      "topics": [
        "log_odds_dc"
      ]
    },
    {
      "page": "objective_function_SL",
      "title": "Objective Function for Structural Learning (SL)",
      "topics": [
        "objective_function_SL"
      ]
    },
    {
      "page": "plot_log_odds",
      "title": "Plot Log-Odds Before and After Transformation",
      "topics": [
        "plot_log_odds"
      ]
    },
    {
      "page": "simulated_annealing_MI",
      "title": "Simulated Annealing Algorithm with Target Entropy Stopping Condition",
      "topics": [
        "simulated_annealing_MI"
      ]
    },
    {
      "page": "simulated_annealing_SL",
      "title": "Simulated Annealing Optimization with Categorical Variable and R^2 Differences",
      "topics": [
        "simulated_annealing_SL"
      ]
    },
    {
      "page": "sinkhorn_algorithm",
      "title": "Sinkhorn Algorithm for Matrix Scaling",
      "topics": [
        "sinkhorn_algorithm"
      ]
    },
    {
      "page": "softmax",
      "title": "Softmax Function with Special Handling for Infinite Values",
      "topics": [
        "softmax"
      ]
    },
    {
      "page": "t_copula_two_vars",
      "title": "Generate t-Copula Samples for Two Variables",
      "topics": [
        "t_copula_two_vars"
      ]
    }
  ],
  "_readme": "https://github.com/namanlab/covalchemy/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "base64enc",
    "bit",
    "bit64",
    "boot",
    "bslib",
    "cachem",
    "cellranger",
    "class",
    "cli",
    "clipr",
    "clue",
    "cluster",
    "colourpicker",
    "commonmark",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "deldir",
    "DescTools",
    "digest",
    "dplyr",
    "e1071",
    "evaluate",
    "Exact",
    "expm",
    "farver",
    "fastmap",
    "fontawesome",
    "forcats",
    "fs",
    "generics",
    "ggExtra",
    "ggplot2",
    "gld",
    "glue",
    "gridExtra",
    "gtable",
    "haven",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "httr",
    "interp",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lifecycle",
    "lmom",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "miniUI",
    "mvtnorm",
    "openssl",
    "otel",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "promises",
    "proxy",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "readr",
    "readxl",
    "rematch",
    "rlang",
    "rmarkdown",
    "rootSolve",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "shiny",
    "shinyjs",
    "sourcetools",
    "sys",
    "tibble",
    "tidyselect",
    "tinytex",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "xfun",
    "xtable",
    "yaml"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "covalchemy",
  "_universes": [
    "namanlab"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-25T10:06:35.000Z",
      "distro": "noble",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "7af268e4cfe9f63d524f7d96c03a6848126b0dbde0db7e39b4c360df98e04a8e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-25T10:06:38.000Z",
      "distro": "noble",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "ca04bc9972df2034844137a5f830cb046941d217ddf4397639f542866689360a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-25T10:06:29.000Z",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "5a8af8f25f1fa41eb3dedf161b7b5fa16391154dc18e07a691cb3225e418cb4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-25T10:06:02.000Z",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "2b10186a351de6f346db3c9c4856a3c1fb2f1068b3c4840cd9c07efe0d10709c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-05-25T10:06:48.000Z",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "c12d5a60e69fd3c96de0864c7c00cdda26b0ec0df05f5a70185212c950590cdf",
      "status": "success",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-25T10:05:37.000Z",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "302ab84d6e23784c0c91c47bfdc3fcdf6b65c035e1a7606e39be7905c51ca4e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-25T10:05:36.000Z",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "a6db2984464f7f23de365bb2985c1fde32127f273066289ca99fb7712f894393",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-25T10:05:54.000Z",
      "commit": "2a89b1c995ce1ebbf04c3000d577ec2e6aeccde8",
      "fileid": "60301c13653cc554ec83fa279d14ddced7669ba2cb483c06926e49a521a94588",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/namanlab/actions/runs/26394789220"
    }
  ]
}