{
  "_id": "6a1ee0f4b401979e734108e8",
  "Package": "STCCGEV",
  "Title": "Conditional Copula Model for Crop Yield Forecasting",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Marie\", \"Michaelides\", email= \"marie.michaelides@concordia.ca\", role = c(\"aut\")),\nperson(\"Mélina\", \"Mailhot\", email= \"melina.mailhot@concordia.ca\", role = c(\"aut\")),\nperson(\"Yongkun\", \"Li\", email= \"yongkun.li@concordia.ca\", role = c(\"aut\", \"cre\"))\n)",
  "Description": "Provides functions to model and forecast crop yields using\na spatial temporal conditional copula approach. The package\nincorporates extreme weather covariates and Bayesian Structural\nTime Series models to analyze crop yield dependencies across\nmultiple regions. Includes tools for fitting, simulating, and\nvisualizing results. This method build upon established R\npackages, including 'Hofert' 'et' 'al'. (2025)\n<doi:10.32614/CRAN.package.copula>, 'Scott' (2024)\n<doi:10.32614/CRAN.package.bsts>, and 'Stephenson' 'et' 'al'.\n(2024) <doi:10.32614/CRAN.package.evd>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-20 06:55:35 UTC",
    "User": "root"
  },
  "Author": "Marie Michaelides [aut], Mélina Mailhot [aut], Yongkun Li [aut,\ncre]",
  "Maintainer": "Yongkun Li <yongkun.li@concordia.ca>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-03-27 17:30:04 UTC",
  "RemoteUrl": "https://github.com/cran/STCCGEV",
  "RemoteRef": "HEAD",
  "RemoteSha": "67bf87bc84729cec9b64d719a74050b7858fdbb0",
  "MD5sum": "1d84642c76ab51cb5f2fbd1ffc2ba54d",
  "_user": "cran",
  "_type": "src",
  "_file": "STCCGEV_1.0.0.tar.gz",
  "_fileid": "92dd90e78d92f0125fd52661881a277a781df4f7a7b730038a14eb2fdf6f3355",
  "_filesize": 381216,
  "_sha256": "92dd90e78d92f0125fd52661881a277a781df4f7a7b730038a14eb2fdf6f3355",
  "_created": "2026-05-20T06:55:35.000Z",
  "_published": "2026-06-02T13:56:04.859Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79087460089,
      "time": 188,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7103268478"
    },
    {
      "job": 79087460371,
      "time": 179,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7103266084"
    },
    {
      "job": 79087459138,
      "time": 219,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7103216327"
    },
    {
      "job": 79087459160,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7359739535"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26146462442",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/STCCGEV",
  "_commit": {
    "id": "67bf87bc84729cec9b64d719a74050b7858fdbb0",
    "author": "Yongkun Li <yongkun.li@concordia.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1743096604
  },
  "_maintainer": {
    "name": "Yongkun Li",
    "email": "yongkun.li@concordia.ca"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "bsts",
      "role": "Imports"
    },
    {
      "package": "copula",
      "role": "Imports"
    },
    {
      "package": "evd",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "rootSolve",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 188,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/STCCGEV"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/STCCGEV.html",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-03-27"
    }
  ],
  "_exports": [
    "clayton.theta",
    "dynamic.rho",
    "dynamic.theta.clayton",
    "dynamic.theta.frank",
    "dynamic.theta.gumbel",
    "dynamic.theta.joe",
    "fit_bsts",
    "frank.theta",
    "GH.theta",
    "joe.theta",
    "log_likelihood_Generalized",
    "log_likelihood_generalized_2d",
    "log_likelihood_noGEV",
    "plot_forecast",
    "plot_forecast_compare",
    "simul_fun_generalized_2d",
    "simul.fun.noGEV",
    "simulation_generalized"
  ],
  "_datasets": [
    {
      "name": "copula_list",
      "title": "Supported copula types",
      "object": "copula_list",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "cropyields_covariates",
      "title": "Data of the article \"Probabilistic Crop Yields Forecasts With Spatio-Temporal Conditional Copula Using Extreme Weather Covariates\"",
      "object": "cropyields_covariates",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "time",
        "CAR_CODE",
        "CAR",
        "CD_CODE",
        "CD",
        "ID",
        "lat",
        "lon",
        "yield",
        "cdd",
        "cddcold_18",
        "dlyfrzthw_tx0_tn",
        "first_fall_frost",
        "frost_days",
        "ice_days",
        "nr_cdd",
        "prcptot",
        "r1mm",
        "r10mm",
        "r20mm",
        "rx1day",
        "rx5day",
        "tg_mean",
        "tn_mean",
        "tn_min",
        "tnlt_-15",
        "tnlt_-25",
        "tr_18",
        "tr_20",
        "tr_22",
        "tx_max",
        "tx_mean",
        "txgt_25",
        "txgt_27",
        "txgt_29",
        "txgt_30",
        "txgt_32"
      ],
      "rows": 1752,
      "table": true,
      "tojson": true
    },
    {
      "name": "init_params_full",
      "title": "Initial Parameters for 2D Pseudo-Loglikelihood Estimation",
      "object": "init_params_full",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "init_params_full_G",
      "title": "Initial Parameters for 2D Pseudo-Loglikelihood-Generalized Estimation",
      "object": "init_params_full_G",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "init_params_noGEV",
      "title": "Initial Parameters for 2D Pseudo-Loglikelihood Estimation without GEV models for covariates",
      "object": "init_params_noGEV",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "medoid_names",
      "title": "list containing Dufferin and Wellington",
      "object": "medoid_names",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "n_test",
      "title": "19",
      "object": "n_test",
      "class": [
        "integer"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "n_train",
      "title": "54",
      "object": "n_train",
      "class": [
        "integer"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "time_all",
      "title": "1950-2022",
      "object": "time_all",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "time_test",
      "title": "2004-2022",
      "object": "time_test",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "time_train",
      "title": "1950-2003",
      "object": "time_train",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "uu",
      "title": "Pseudo-Observations of BSTS Residuals for Crop Yield Forecasting",
      "object": "uu",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Dufferin",
        "Wellington"
      ],
      "rows": 54,
      "table": true,
      "tojson": true
    },
    {
      "name": "xx_all",
      "title": "Maximized Covariates Matrix for Crop Yield Forecasting",
      "object": "xx_all",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "cdd",
        "frost_days",
        "rx1day",
        "tg_mean",
        "txgt_25"
      ],
      "rows": 73,
      "table": true,
      "tojson": true
    },
    {
      "name": "xx_test",
      "title": "Maximized Covariates Matrix for Crop Yield Forecasting",
      "object": "xx_test",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "cdd",
        "frost_days",
        "rx1day",
        "tg_mean",
        "txgt_25"
      ],
      "rows": 19,
      "table": true,
      "tojson": true
    },
    {
      "name": "xx_train",
      "title": "Maximized Covariates Matrix for Crop Yield Forecasting",
      "object": "xx_train",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "cdd",
        "frost_days",
        "rx1day",
        "tg_mean",
        "txgt_25"
      ],
      "rows": 54,
      "table": true,
      "tojson": true
    },
    {
      "name": "yy_all",
      "title": "Crop Yield Data",
      "object": "yy_all",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 73,
      "table": true,
      "tojson": true
    },
    {
      "name": "yy_test",
      "title": "Crop Yield Data for Testing in BSTS Models",
      "object": "yy_test",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Dufferin",
        "Wellington"
      ],
      "rows": 19,
      "table": true,
      "tojson": true
    },
    {
      "name": "yy_train",
      "title": "Crop Yield Data for Training in BSTS Models",
      "object": "yy_train",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Dufferin",
        "Wellington"
      ],
      "rows": 54,
      "table": true,
      "tojson": true
    },
    {
      "name": "zz_all",
      "title": "Standardized Covariates Array for Crop Yield Forecasting",
      "object": "zz_all",
      "class": [
        "array"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "zz_test",
      "title": "Standardized Covariates Array for Crop Yield Forecasting",
      "object": "zz_test",
      "class": [
        "array"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "zz_train",
      "title": "Standardized Covariates Array for Crop Yield Forecasting",
      "object": "zz_train",
      "class": [
        "array"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "clayton.theta",
      "title": "Compute Clayton Copula Parameter from Kendall's Tau",
      "topics": [
        "clayton.theta"
      ]
    },
    {
      "page": "copula_list",
      "title": "Supported copula types",
      "topics": [
        "copula_list"
      ]
    },
    {
      "page": "cropyields_covariates",
      "title": "Data of the article \"Probabilistic Crop Yields Forecasts With Spatio-Temporal Conditional Copula Using Extreme Weather Covariates\"",
      "topics": [
        "cropyields_covariates"
      ]
    },
    {
      "page": "dynamic.rho",
      "title": "Compute Dynamic Gaussian Copula Correlation Parameter (rho)",
      "topics": [
        "dynamic.rho"
      ]
    },
    {
      "page": "dynamic.theta.clayton",
      "title": "Compute Dynamic Clayton Copula Parameter",
      "topics": [
        "dynamic.theta.clayton"
      ]
    },
    {
      "page": "dynamic.theta.frank",
      "title": "Compute Dynamic Frank Copula Parameter",
      "topics": [
        "dynamic.theta.frank"
      ]
    },
    {
      "page": "dynamic.theta.gumbel",
      "title": "Compute Dynamic Gumbel Copula Parameter",
      "topics": [
        "dynamic.theta.gumbel"
      ]
    },
    {
      "page": "dynamic.theta.joe",
      "title": "Compute Dynamic Joe Copula Parameter",
      "topics": [
        "dynamic.theta.joe"
      ]
    },
    {
      "page": "fit_bsts",
      "title": "Fit a Bayesian Structural Time Series (BSTS) Model",
      "topics": [
        "fit_bsts"
      ]
    },
    {
      "page": "frank.theta",
      "title": "Compute Frank Copula Parameter from Kendall's Tau",
      "topics": [
        "frank.theta"
      ]
    },
    {
      "page": "GH.theta",
      "title": "Compute Gumbel Copula Parameter from Kendall's Tau",
      "topics": [
        "GH.theta"
      ]
    },
    {
      "page": "init_params_full",
      "title": "Initial Parameters for 2D Pseudo-Loglikelihood Estimation",
      "topics": [
        "init_params_full"
      ]
    },
    {
      "page": "init_params_full_G",
      "title": "Initial Parameters for 2D Pseudo-Loglikelihood-Generalized Estimation",
      "topics": [
        "init_params_full_G"
      ]
    },
    {
      "page": "init_params_noGEV",
      "title": "Initial Parameters for 2D Pseudo-Loglikelihood Estimation without GEV models for covariates",
      "topics": [
        "init_params_noGEV"
      ]
    },
    {
      "page": "joe.theta",
      "title": "Compute Joe Copula Parameter from Kendall's Tau",
      "topics": [
        "joe.theta"
      ]
    },
    {
      "page": "log_likelihood_Generalized",
      "title": "Compute Log-Likelihood for a Generalized Dynamic Copula-GEV Model",
      "topics": [
        "log_likelihood_Generalized"
      ]
    },
    {
      "page": "log_likelihood_generalized_2d",
      "title": "Generalized Log-Likelihood Function for 2D Copula-GEV Model",
      "topics": [
        "log_likelihood_generalized_2d"
      ]
    },
    {
      "page": "log_likelihood_noGEV",
      "title": "Compute Log-Likelihood for a Generalized Dynamic Copula Model without GEV covariates",
      "topics": [
        "log_likelihood_noGEV"
      ]
    },
    {
      "page": "medoid_names",
      "title": "list containing Dufferin and Wellington",
      "topics": [
        "medoid_names"
      ]
    },
    {
      "page": "n_test",
      "title": "19",
      "topics": [
        "n_test"
      ]
    },
    {
      "page": "n_train",
      "title": "54",
      "topics": [
        "n_train"
      ]
    },
    {
      "page": "plot_forecast",
      "title": "Plot Observed Data and BSTS Forecast",
      "topics": [
        "plot_forecast"
      ]
    },
    {
      "page": "plot_forecast_compare",
      "title": "Compare Forecasts from Two Models",
      "topics": [
        "plot_forecast_compare"
      ]
    },
    {
      "page": "simul_fun_generalized_2d",
      "title": "A Special Case of simulation_generalized in 2 Dimensions",
      "topics": [
        "simul_fun_generalized_2d"
      ]
    },
    {
      "page": "simul.fun.noGEV",
      "title": "Simulate Multivariate Crop Yield Data Using a Generalized Copula-BSTS Model Without GEV Covariates",
      "topics": [
        "simul.fun.noGEV"
      ]
    },
    {
      "page": "simulation_generalized",
      "title": "Simulate Multivariate Crop Yield Data Using a Generalized Copula-GEV-BSTS Model",
      "topics": [
        "simulation_generalized"
      ]
    },
    {
      "page": "time_all",
      "title": "1950-2022",
      "topics": [
        "time_all"
      ]
    },
    {
      "page": "time_test",
      "title": "2004-2022",
      "topics": [
        "time_test"
      ]
    },
    {
      "page": "time_train",
      "title": "1950-2003",
      "topics": [
        "time_train"
      ]
    },
    {
      "page": "uu",
      "title": "Pseudo-Observations of BSTS Residuals for Crop Yield Forecasting",
      "topics": [
        "uu"
      ]
    },
    {
      "page": "xx_all",
      "title": "Maximized Covariates Matrix for Crop Yield Forecasting",
      "topics": [
        "xx_all"
      ]
    },
    {
      "page": "xx_test",
      "title": "Maximized Covariates Matrix for Crop Yield Forecasting",
      "topics": [
        "xx_test"
      ]
    },
    {
      "page": "xx_train",
      "title": "Maximized Covariates Matrix for Crop Yield Forecasting",
      "topics": [
        "xx_train"
      ]
    },
    {
      "page": "yy_all",
      "title": "Crop Yield Data",
      "topics": [
        "yy_all"
      ]
    },
    {
      "page": "yy_test",
      "title": "Crop Yield Data for Testing in BSTS Models",
      "topics": [
        "yy_test"
      ]
    },
    {
      "page": "yy_train",
      "title": "Crop Yield Data for Training in BSTS Models",
      "topics": [
        "yy_train"
      ]
    },
    {
      "page": "zz_all",
      "title": "Standardized Covariates Array for Crop Yield Forecasting",
      "topics": [
        "zz_all"
      ]
    },
    {
      "page": "zz_test",
      "title": "Standardized Covariates Array for Crop Yield Forecasting",
      "topics": [
        "zz_test"
      ]
    },
    {
      "page": "zz_train",
      "title": "Standardized Covariates Array for Crop Yield Forecasting",
      "topics": [
        "zz_train"
      ]
    }
  ],
  "_rundeps": [
    "ADGofTest",
    "Boom",
    "BoomSpikeSlab",
    "bsts",
    "cli",
    "cluster",
    "colorspace",
    "copula",
    "cpp11",
    "evd",
    "farver",
    "ggplot2",
    "glue",
    "gsl",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "MASS",
    "Matrix",
    "mvtnorm",
    "numDeriv",
    "pcaPP",
    "pspline",
    "R6",
    "RColorBrewer",
    "rlang",
    "rootSolve",
    "S7",
    "scales",
    "stabledist",
    "vctrs",
    "viridisLite",
    "withr",
    "xts",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "Predicting-Crop-Yields-Using-STCCGEV-Method.Rmd",
      "filename": "Predicting-Crop-Yields-Using-STCCGEV-Method.html",
      "title": "Predicting Crop Yields Using STCCGEV Method",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2025-03-27 17:30:04",
      "modified": "2025-03-27 17:30:04",
      "commits": 1
    }
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "stccgev",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-20T06:57:50.000Z",
      "distro": "noble",
      "commit": "67bf87bc84729cec9b64d719a74050b7858fdbb0",
      "fileid": "681a90e89be0f4246530c49a80c0d02302bc8f05cff65edfdc750f90a2833e40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26146462442"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-20T06:57:49.000Z",
      "distro": "noble",
      "commit": "67bf87bc84729cec9b64d719a74050b7858fdbb0",
      "fileid": "7c214d679f3e51672fc19e5f7ed1c48e286c856eb95b67f57a37c6070b4b2d20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26146462442"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-02T13:55:31.000Z",
      "commit": "67bf87bc84729cec9b64d719a74050b7858fdbb0",
      "fileid": "fb3c6ebd5e52c3f266d356103e929b252031e8ec2ff127f2cb636ea7f7df6c11",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26146462442"
    }
  ]
}