{
  "_id": "6a103d69acfb0bcc41c9c421",
  "Package": "STCYP",
  "Title": "Spatio-Temporal Crop Yield Prediction",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Marie\", \"Michaelides\", email= \"M.Michaelides@hw.ac.uk\", 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 crop yield and meteorological data for Ontario,\nCanada. Includes functions for fitting and predicting data\nusing spatio-temporal models, as well as tools for visualizing\nthe results. The package builds upon existing R packages,\nincluding 'copula' (Hofert et al., 2025)\n<doi:10.32614/CRAN.package.copula>, and 'bsts' (Scott, 2024)\n<doi:10.32614/CRAN.package.bsts>.",
  "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-11 09:29:42 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-09-09 14:40:23 UTC",
  "RemoteUrl": "https://github.com/cran/STCYP",
  "RemoteRef": "HEAD",
  "RemoteSha": "725be8dee49ff95199c003a7f2dd709dd12ee636",
  "MD5sum": "2e6d56fab61b7e55049d088d6dde4b01",
  "_user": "cran",
  "_type": "src",
  "_file": "STCYP_1.0.0.tar.gz",
  "_fileid": "65250dd9510b0e7951e7a4db932f31bb15a303e44bf4ce8334baf87cd4355614",
  "_filesize": 301067,
  "_sha256": "65250dd9510b0e7951e7a4db932f31bb15a303e44bf4ce8334baf87cd4355614",
  "_created": "2026-05-11T09:29:42.000Z",
  "_published": "2026-05-22T11:26:33.206Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77370218029,
      "time": 169,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6914989086"
    },
    {
      "job": 77370217711,
      "time": 167,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6914986923"
    },
    {
      "job": 77370217262,
      "time": 202,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6914928822"
    },
    {
      "job": 77370216987,
      "time": 120,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159364371"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/25661803069",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/STCYP",
  "_commit": {
    "id": "725be8dee49ff95199c003a7f2dd709dd12ee636",
    "author": "Yongkun Li <yongkun.li@concordia.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1757428823
  },
  "_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": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "rootSolve",
      "role": "Imports"
    },
    {
      "package": "stats",
      "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": [
    {
      "week": "2025-37",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2025-09-09"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 465,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/STCYP"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/STCYP.html",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-09-09"
    }
  ],
  "_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_noGEV_3d",
    "plot_forecast",
    "plot_forecast_compare",
    "simul_fun_noGEV_3d"
  ],
  "_datasets": [
    {
      "name": "copula_list",
      "title": "Supported copula types",
      "object": "copula_list",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "data",
      "title": "Real crop yield and meteorological data of 24 regions for Ontario, Canada from 1950 to 2022 and anticipated data from 2023 to 2100.",
      "object": "data",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "time",
        "CD",
        "lat",
        "lon",
        "yield",
        "cdd",
        "cddcold",
        "dlyfrzthw",
        "firstfallfrost",
        "frostdays",
        "icedays",
        "nrcdd",
        "prcptot",
        "r1mm",
        "r10mm",
        "r20mm",
        "rx1day",
        "rx5day",
        "tgmean",
        "tnmean",
        "tnmin",
        "tr18",
        "txmax",
        "txmean",
        "txgt25",
        "txgt27",
        "txgt29"
      ],
      "rows": 3624,
      "table": true,
      "tojson": true
    },
    {
      "name": "dt",
      "title": "Selected data from year 1950 to 2022 and covariates including txgt27, tr18, cddcold, txgt29, and tnmean for case study.",
      "object": "dt",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "CD",
        "lat",
        "lon",
        "yield",
        "txgt27",
        "tr18",
        "cddcold",
        "txgt29",
        "tnmean"
      ],
      "rows": 1752,
      "table": true,
      "tojson": true
    },
    {
      "name": "init_params_full",
      "title": "Initial Parameters for 3D Pseudo-Loglikelihood Estimation",
      "object": "init_params_full",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "medoid_names",
      "title": "list containing Chatham-Kent, Lambton, and Wellington",
      "object": "medoid_names",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "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",
      "title": "1950-2022",
      "object": "time",
      "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": "u",
      "title": "Pseudo-Observations of BSTS Residuals for Crop Yield Forecasting",
      "object": "u",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "y_test",
      "title": "Crop Yield Data for Testing in BSTS Models",
      "object": "y_test",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "y_train",
      "title": "Crop Yield Training Matrix",
      "object": "y_train",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "z_test",
      "title": "Standardized Covariates (Test)",
      "object": "z_test",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "z_train",
      "title": "Standardized Covariates (Training)",
      "object": "z_train",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "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": "data",
      "title": "Real crop yield and meteorological data of 24 regions for Ontario, Canada from 1950 to 2022 and anticipated data from 2023 to 2100.",
      "topics": [
        "data"
      ]
    },
    {
      "page": "dt",
      "title": "Selected data from year 1950 to 2022 and covariates including txgt27, tr18, cddcold, txgt29, and tnmean for case study.",
      "topics": [
        "dt"
      ]
    },
    {
      "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 3D Pseudo-Loglikelihood Estimation",
      "topics": [
        "init_params_full"
      ]
    },
    {
      "page": "joe.theta",
      "title": "Compute Joe Copula Parameter from Kendall's Tau",
      "topics": [
        "joe.theta"
      ]
    },
    {
      "page": "log_likelihood_noGEV_3d",
      "title": "Log-Likelihood Function for 3D Copula Model",
      "topics": [
        "log_likelihood_noGEV_3d"
      ]
    },
    {
      "page": "medoid_names",
      "title": "list containing Chatham-Kent, Lambton, 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_noGEV_3d",
      "title": "Function to optimize the full pseudo-loglikelihood and perform new forecasts",
      "topics": [
        "simul_fun_noGEV_3d"
      ]
    },
    {
      "page": "time",
      "title": "1950-2022",
      "topics": [
        "time"
      ]
    },
    {
      "page": "time_test",
      "title": "2004-2022",
      "topics": [
        "time_test"
      ]
    },
    {
      "page": "time_train",
      "title": "1950-2003",
      "topics": [
        "time_train"
      ]
    },
    {
      "page": "u",
      "title": "Pseudo-Observations of BSTS Residuals for Crop Yield Forecasting",
      "topics": [
        "u"
      ]
    },
    {
      "page": "y_test",
      "title": "Crop Yield Data for Testing in BSTS Models",
      "topics": [
        "y_test"
      ]
    },
    {
      "page": "y_train",
      "title": "Crop Yield Training Matrix",
      "topics": [
        "y_train"
      ]
    },
    {
      "page": "z_test",
      "title": "Standardized Covariates (Test)",
      "topics": [
        "z_test"
      ]
    },
    {
      "page": "z_train",
      "title": "Standardized Covariates (Training)",
      "topics": [
        "z_train"
      ]
    }
  ],
  "_rundeps": [
    "ADGofTest",
    "Boom",
    "BoomSpikeSlab",
    "bsts",
    "cli",
    "cluster",
    "colorspace",
    "copula",
    "cpp11",
    "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": "Intro_to_STCYP.Rmd",
      "filename": "Intro_to_STCYP.html",
      "title": "Applying Spatio-Temporal Model to Crop Yield Data",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2025-09-09 14:40:23",
      "modified": "2025-09-09 14:40:23",
      "commits": 1
    }
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "stcyp",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-11T09:32:02.000Z",
      "distro": "noble",
      "commit": "725be8dee49ff95199c003a7f2dd709dd12ee636",
      "fileid": "2ec7fa5b884bf313ea60a1e1b8fa2644cab3547d1ecf8badfc35e33383eb0749",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25661803069"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-11T09:32:00.000Z",
      "distro": "noble",
      "commit": "725be8dee49ff95199c003a7f2dd709dd12ee636",
      "fileid": "bbfab88f3e04b1c61325190b05aa4098ccecb924b3bbf88f5c10cf8d19fe062b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25661803069"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-05-22T11:26:14.000Z",
      "commit": "725be8dee49ff95199c003a7f2dd709dd12ee636",
      "fileid": "94c11399beaf05dea31bb97ae90cc90e2ff5ffb6fb2dcf920f07fbd209c92f50",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25661803069"
    }
  ]
}