{
  "_id": "6a27cfe624555f66ed544cde",
  "Package": "MSTest",
  "Type": "Package",
  "Title": "Hypothesis Testing for Markov Switching Models",
  "Date": "2026-01-08",
  "Version": "0.1.8",
  "Authors@R": "c(person(given = \"Gabriel\",\nfamily = \"Rodriguez Rondon\",\nrole = c(\"cre\",\"aut\"),\nemail = \"gabriel.rodriguezrondon@mail.mcgill.ca\",\ncomment = c(ORCID = \"0009-0005-3769-9921\")),\nperson(given = \"Jean-Marie\",\nfamily = \"Dufour\",\nrole = c(\"aut\"),\nemail = \"jean-marie.dufour@mcgill.ca\"))",
  "Maintainer": "Gabriel Rodriguez Rondon\n<gabriel.rodriguezrondon@mail.mcgill.ca>",
  "Description": "Implementation of hypothesis testing procedures described\nin Hansen (1992) <doi:10.1002/jae.3950070506>, Carrasco, Hu, &\nPloberger (2014) <doi:10.3982/ECTA8609>, Dufour & Luger (2017)\n<doi:10.1080/07474938.2017.1307548>, and Rodriguez Rondon &\nDufour (2024)\n<https://grodriguezrondon.com/files/RodriguezRondon_Dufour_2025_MonteCarlo_LikelihoodRatioTest_MarkovSwitchingModels_20251014.pdf>\nthat can be used to identify the number of regimes in Markov\nswitching models.",
  "License": "GPL (>= 2)",
  "LazyData": "TRUE",
  "RoxygenNote": "7.3.1",
  "Encoding": "UTF-8",
  "URL": "https://github.com/roga11/MSTest",
  "BugReports": "https://github.com/roga11/MSTest/issues",
  "SystemRequirements": "C++17",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-09 08:28:36 UTC",
    "User": "root"
  },
  "Author": "Gabriel Rodriguez Rondon [cre, aut] (ORCID:\n<https://orcid.org/0009-0005-3769-9921>), Jean-Marie Dufour\n[aut]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-01-09 16:48:36 UTC",
  "RemoteUrl": "https://github.com/cran/MSTest",
  "RemoteRef": "HEAD",
  "RemoteSha": "e265bedafe12b1fb36ca576b88e73ec4ccda6c90",
  "MD5sum": "71859deb3706d502f063cf8e0fc3e421",
  "_user": "cran",
  "_type": "src",
  "_file": "MSTest_0.1.8.tar.gz",
  "_fileid": "167e5ff9da8e22684a877f2c539b1111744500d19580c512fb997192356214d8",
  "_filesize": 423348,
  "_sha256": "167e5ff9da8e22684a877f2c539b1111744500d19580c512fb997192356214d8",
  "_created": "2026-06-09T08:28:36.000Z",
  "_published": "2026-06-09T08:33:42.483Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80280379070,
      "time": 185,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7502494730"
    },
    {
      "job": 80280379253,
      "time": 159,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7502483710"
    },
    {
      "job": 80280379069,
      "time": 218,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502507263"
    },
    {
      "job": 80280379098,
      "time": 162,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502485066"
    },
    {
      "job": 80279703792,
      "time": 233,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502423123"
    },
    {
      "job": 80280379022,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502473287"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27193612636",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/MSTest",
  "_commit": {
    "id": "e265bedafe12b1fb36ca576b88e73ec4ccda6c90",
    "author": "Gabriel Rodriguez Rondon <gabriel.rodriguezrondon@mail.mcgill.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.8\n",
    "time": 1767977316
  },
  "_maintainer": {
    "name": "Gabriel Rodriguez Rondon",
    "email": "gabriel.rodriguezrondon@mail.mcgill.ca"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.1",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "pracma",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "GenSA",
      "role": "Imports"
    },
    {
      "package": "pso",
      "role": "Imports"
    },
    {
      "package": "GA",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.6",
      "date": "2025-10-23"
    },
    {
      "name": "0.1.8",
      "date": "2026-01-09"
    }
  ],
  "_stars": 2,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 523,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/MSTest"
  },
  "_devurl": "https://github.com/roga11/mstest",
  "_searchresults": 2,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/MSTest.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/roga11/mstest",
  "_realowner": "roga11",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-10-19"
    },
    {
      "version": "0.1.1",
      "date": "2023-01-31"
    },
    {
      "version": "0.1.2",
      "date": "2024-05-31"
    },
    {
      "version": "0.1.3",
      "date": "2024-10-30"
    },
    {
      "version": "0.1.5",
      "date": "2025-02-24"
    },
    {
      "version": "0.1.6",
      "date": "2025-10-23"
    },
    {
      "version": "0.1.8",
      "date": "2026-01-09"
    }
  ],
  "_exports": [
    "approx_dist_loop",
    "approxDistDL",
    "argrid_MSARmdl",
    "argrid_MSVARmdl",
    "ARmdl",
    "arP",
    "ARXmdl",
    "calc_DLmoments",
    "calc_mu2t",
    "calc_mu2t_mv",
    "calcResid_MSARmdl",
    "calcResid_MSARXmdl",
    "calcResid_MSVARmdl",
    "calcResid_MSVARXmdl",
    "CHPbootCV",
    "chpDmat",
    "chpStat",
    "CHPTest",
    "clike",
    "combine_stat",
    "companionMat",
    "compu_tstat",
    "cov2corr",
    "covar_unvech",
    "covar_vech",
    "DLMCTest",
    "DLMMC_bounds",
    "DLMMCpval_fun",
    "DLMMCpval_fun_min",
    "DLMMCTest",
    "dmclike",
    "EMaximization_HMmdl",
    "EMaximization_MSARmdl",
    "EMaximization_MSARXmdl",
    "EMaximization_MSVARmdl",
    "EMaximization_MSVARXmdl",
    "EMiter_HMmdl",
    "EMiter_MSARmdl",
    "EMiter_MSARXmdl",
    "EMiter_MSVARmdl",
    "EMiter_MSVARXmdl",
    "estimMdl",
    "ExpectationM_HMmdl",
    "ExpectationM_MSARmdl",
    "ExpectationM_MSARXmdl",
    "ExpectationM_MSVARmdl",
    "ExpectationM_MSVARXmdl",
    "getHessian",
    "HLRparamSearch",
    "HLRTest",
    "HMmdl",
    "HMmdl_em",
    "HMmdl_mle",
    "initVals_HMmdl",
    "initVals_MSARmdl",
    "initVals_MSARXmdl",
    "initVals_MSVARmdl",
    "initVals_MSVARXmdl",
    "interMSARmdl",
    "interMSVARmdl",
    "limP",
    "LMCLRTest",
    "logLike_ARmdl",
    "logLike_ARXmdl",
    "logLike_HMmdl",
    "logLike_HMmdl_min",
    "logLike_MSARmdl",
    "logLike_MSARmdl_min",
    "logLike_MSARXmdl",
    "logLike_MSARXmdl_min",
    "logLike_MSVARmdl",
    "logLike_MSVARmdl_min",
    "logLike_MSVARXmdl",
    "logLike_MSVARXmdl_min",
    "logLike_Nmdl",
    "logLike_VARmdl",
    "logLike_VARXmdl",
    "LR_samp_dist",
    "LR_samp_dist_par",
    "marklike",
    "mclike",
    "MCpval",
    "mdledit",
    "MMC_bounds",
    "MMCLRpval_fun",
    "MMCLRpval_fun_min",
    "MMCLRTest",
    "MSARmdl",
    "MSARmdl_em",
    "MSARmdl_mle",
    "MSARXmdl",
    "MSARXmdl_em",
    "MSVARmdl",
    "MSVARmdl_em",
    "MSVARmdl_mle",
    "MSVARXmdl",
    "MSVARXmdl_em",
    "Nmdl",
    "paramList_MSARmdl",
    "paramList_MSARXmdl",
    "paramList_MSVARmdl",
    "paramList_MSVARXmdl",
    "randP",
    "randSN",
    "sim_DLmoments",
    "simuAR",
    "simuAR_cpp",
    "simuARX",
    "simuARX_cpp",
    "simuHMM",
    "simuHMM_cpp",
    "simuMdl",
    "simuMSAR",
    "simuMSAR_cpp",
    "simuMSARX",
    "simuMSARX_cpp",
    "simuMSVAR",
    "simuMSVAR_cpp",
    "simuMSVARX",
    "simuMSVARX_cpp",
    "simuNorm",
    "simuNorm_cpp",
    "simuVAR",
    "simuVAR_cpp",
    "simuVARX",
    "simuVARX_cpp",
    "thetaSE",
    "ts_lagged",
    "VARmdl",
    "VARXmdl"
  ],
  "_datasets": [
    {
      "name": "chp10GNP",
      "title": "Carrasco, Hu, & Ploberger 2010 GNP data",
      "object": "chp10GNP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "DATE",
        "GNP",
        "GNP_gr"
      ],
      "rows": 239,
      "table": true,
      "tojson": true
    },
    {
      "name": "hamilton84GNP",
      "title": "Hamilton 1984 & Hansen 1992 GNP data",
      "object": "hamilton84GNP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "DATE",
        "GNP",
        "GNP_gr"
      ],
      "rows": 135,
      "table": true,
      "tojson": true
    },
    {
      "name": "USGNP",
      "title": "US GNP data 1947Q2 - 2024Q2",
      "object": "USGNP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Date",
        "GNP",
        "GNP_gr"
      ],
      "rows": 309,
      "table": true,
      "tojson": true
    },
    {
      "name": "USRGDP",
      "title": "US Real GDP data 1947Q2 - 2024Q2",
      "object": "USRGDP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Date",
        "RGDP",
        "RGDP_gr"
      ],
      "rows": 309,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "MSTest-package",
      "title": "Testing Markov Switching Models",
      "topics": [
        "MSTest-package",
        "MSTest"
      ]
    },
    {
      "page": "ARmdl",
      "title": "Autoregressive Model",
      "topics": [
        "ARmdl"
      ]
    },
    {
      "page": "ARXmdl",
      "title": "Autoregressive X Model",
      "topics": [
        "ARXmdl"
      ]
    },
    {
      "page": "chp10GNP",
      "title": "Carrasco, Hu, & Ploberger 2010 GNP data",
      "topics": [
        "chp10GNP"
      ]
    },
    {
      "page": "CHPbootCV",
      "title": "Bootstrap critical values for CHP 2014 parameter stability test",
      "topics": [
        "CHPbootCV"
      ]
    },
    {
      "page": "CHPTest",
      "title": "Carrasco, Hu, and Ploberger (2014) parameter stability test",
      "topics": [
        "CHPTest"
      ]
    },
    {
      "page": "DLMCTest",
      "title": "Monte Carlo moment-based test for Markov switching model",
      "topics": [
        "DLMCTest"
      ]
    },
    {
      "page": "DLMMCTest",
      "title": "Maximized Monte Carlo moment-based test for Markov switching model",
      "topics": [
        "DLMMCTest"
      ]
    },
    {
      "page": "hamilton84GNP",
      "title": "Hamilton 1984 & Hansen 1992 GNP data",
      "topics": [
        "hamilton84GNP"
      ]
    },
    {
      "page": "HLRTest",
      "title": "Hansen (1992) likelihood ratio test",
      "topics": [
        "HLRTest"
      ]
    },
    {
      "page": "HMmdl",
      "title": "Hidden Markov model",
      "topics": [
        "HMmdl"
      ]
    },
    {
      "page": "LMCLRTest",
      "title": "Monte Carlo Likelihood Ratio Test",
      "topics": [
        "LMCLRTest"
      ]
    },
    {
      "page": "MCpval",
      "title": "Monte Carlo P-value",
      "topics": [
        "MCpval"
      ]
    },
    {
      "page": "MMCLRTest",
      "title": "Maximized Monte Carlo Likelihood Ratio Test",
      "topics": [
        "MMCLRTest"
      ]
    },
    {
      "page": "MSARmdl",
      "title": "Markov-switching autoregressive model",
      "topics": [
        "MSARmdl"
      ]
    },
    {
      "page": "MSARXmdl",
      "title": "Markov-switching autoregressive model",
      "topics": [
        "MSARXmdl"
      ]
    },
    {
      "page": "MSVARmdl",
      "title": "Markov-switching vector autoregressive model",
      "topics": [
        "MSVARmdl"
      ]
    },
    {
      "page": "MSVARXmdl",
      "title": "Markov-switching vector autoregressive model",
      "topics": [
        "MSVARXmdl"
      ]
    },
    {
      "page": "Nmdl",
      "title": "Normal distribution model",
      "topics": [
        "Nmdl"
      ]
    },
    {
      "page": "simuAR",
      "title": "Simulate autoregressive process",
      "topics": [
        "simuAR"
      ]
    },
    {
      "page": "simuARX",
      "title": "Simulate autoregressive X process",
      "topics": [
        "simuARX"
      ]
    },
    {
      "page": "simuHMM",
      "title": "Simulate Hidden Markov model with normally distributed errors",
      "topics": [
        "simuHMM"
      ]
    },
    {
      "page": "simuMSAR",
      "title": "Simulate Markov-switching autoregressive process",
      "topics": [
        "simuMSAR"
      ]
    },
    {
      "page": "simuMSARX",
      "title": "Simulate Markov-switching ARX process",
      "topics": [
        "simuMSARX"
      ]
    },
    {
      "page": "simuMSVAR",
      "title": "Simulate Markov-switching vector autoregressive process",
      "topics": [
        "simuMSVAR"
      ]
    },
    {
      "page": "simuMSVARX",
      "title": "Simulate Markov-switching VARX process",
      "topics": [
        "simuMSVARX"
      ]
    },
    {
      "page": "simuNorm",
      "title": "Simulate normally distributed process",
      "topics": [
        "simuNorm"
      ]
    },
    {
      "page": "simuVAR",
      "title": "Simulate VAR process",
      "topics": [
        "simuVAR"
      ]
    },
    {
      "page": "simuVARX",
      "title": "Simulate VAR process",
      "topics": [
        "simuVARX"
      ]
    },
    {
      "page": "USGNP",
      "title": "US GNP data 1947Q2 - 2024Q2",
      "topics": [
        "USGNP"
      ]
    },
    {
      "page": "USRGDP",
      "title": "US Real GDP data 1947Q2 - 2024Q2",
      "topics": [
        "USRGDP"
      ]
    },
    {
      "page": "VARmdl",
      "title": "Vector autoregressive model",
      "topics": [
        "VARmdl"
      ]
    },
    {
      "page": "VARXmdl",
      "title": "Vector X autoregressive model",
      "topics": [
        "VARXmdl"
      ]
    }
  ],
  "_readme": "https://github.com/cran/MSTest/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "crayon",
    "foreach",
    "GA",
    "GenSA",
    "iterators",
    "nloptr",
    "numDeriv",
    "pracma",
    "pso",
    "Rcpp",
    "RcppArmadillo",
    "rlang"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 2.3010299956639813,
  "_indexed": false,
  "_nocasepkg": "mstest",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://roga11.r-universe.dev/MSTest",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.8",
      "date": "2026-06-09T08:31:46.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e265bedafe12b1fb36ca576b88e73ec4ccda6c90",
      "fileid": "a79acbb25e224d7d7a60cdb4a55f4e106e7c299d5179530371edd730fc685f3a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27193612636"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.8",
      "date": "2026-06-09T08:31:21.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e265bedafe12b1fb36ca576b88e73ec4ccda6c90",
      "fileid": "fa45aa40d39d69cb6276ff9c32afae4b0e9134c5c52a1b237d9b55fbb9d925a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27193612636"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.8",
      "date": "2026-06-09T08:32:17.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e265bedafe12b1fb36ca576b88e73ec4ccda6c90",
      "fileid": "b2e85dff905a792999f59e9da9e934c18a9745aa8cc1528b75da216db5483b3f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27193612636"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.8",
      "date": "2026-06-09T08:31:22.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e265bedafe12b1fb36ca576b88e73ec4ccda6c90",
      "fileid": "45e62597e4c15779b7d320bc0ae5b9f42ce289fc2aab5394ab100170bf400d08",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27193612636"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.8",
      "date": "2026-06-09T08:31:27.000Z",
      "arch": "emscripten",
      "commit": "e265bedafe12b1fb36ca576b88e73ec4ccda6c90",
      "fileid": "793ffe63c3a4cdf40b01090b0ec707cccca2b7d9379da504f709abe67b8c79bf",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27193612636"
    }
  ]
}