{
  "_id": "6a1f2f10b401979e73426c3a",
  "Package": "fjohansen",
  "Type": "Package",
  "Title": "Johansen Cointegration Test with Fourier-Type Smooth Nonlinear\nTrends",
  "Version": "0.1.0",
  "Date": "2026-05-29",
  "Authors@R": "c(\nperson(given = \"Merwan\",\nfamily = \"Roudane\",\nemail  = \"merwanroudane920@gmail.com\",\nrole   = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"\")))",
  "Maintainer": "Merwan Roudane <merwanroudane920@gmail.com>",
  "Description": "Implements the Johansen cointegration test with\nFourier-type smooth nonlinear deterministic trends restricted\nto cointegrating relations, as developed by Kurita and Shintani\n(2025) <doi:10.1080/07474938.2025.2530640>. Six model variants\nare supported: CNR (constant plus nonlinear, restricted in the\ncointegrating space), LNR (linear plus nonlinear, restricted),\nCNU (constant restricted, nonlinear unrestricted), LNU (linear\nrestricted, nonlinear unrestricted), plus the standard\nconstant- and linear-trend restricted Johansen models. The\npackage also bundles the feasible generalised least squares\n(FGLS) Wald test of Perron, Shintani and Yabu (2017)\n<doi:10.1111/obes.12169> used as a frequency-selection\npre-step, together with bundled critical-value tables, a\nvectorised simulator for the limiting distribution,\npublication-quality table exports (LaTeX and HTML) and\n'ggplot2' figures matching those of the paper.",
  "URL": "https://github.com/merwanroudane/fjohansen",
  "BugReports": "https://github.com/merwanroudane/fjohansen/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-02 18:56:41 UTC",
    "User": "root"
  },
  "Author": "Merwan Roudane [aut, cre]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-02 08:30:09 UTC",
  "RemoteUrl": "https://github.com/cran/fjohansen",
  "RemoteRef": "HEAD",
  "RemoteSha": "24fccca26138d7b0fb74f773823235d11835590e",
  "MD5sum": "60d3dd542303163766f126b35d308c34",
  "_user": "cran",
  "_type": "src",
  "_file": "fjohansen_0.1.0.tar.gz",
  "_fileid": "e8b1d5a9f142be1e097e1ca1b163d917d06b8e8ecd0b494a5402d2509a75452e",
  "_filesize": 203800,
  "_sha256": "e8b1d5a9f142be1e097e1ca1b163d917d06b8e8ecd0b494a5402d2509a75452e",
  "_created": "2026-06-02T18:56:41.000Z",
  "_published": "2026-06-02T19:29:20.413Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79149113558,
      "time": 115,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7367127821"
    },
    {
      "job": 79149113563,
      "time": 1924,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367777471"
    },
    {
      "job": 79148523171,
      "time": 188,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367085593"
    },
    {
      "job": 79149113602,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367124005"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26841197522",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/fjohansen",
  "_commit": {
    "id": "24fccca26138d7b0fb74f773823235d11835590e",
    "author": "Merwan Roudane <merwanroudane920@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1780389009
  },
  "_maintainer": {
    "name": "Merwan Roudane",
    "email": "merwanroudane920@gmail.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-06-02"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fjohansen"
  },
  "_devurl": "https://github.com/merwanroudane/fjohansen",
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fjohansen.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-06-02"
    }
  ],
  "_exports": [
    "build_design_matrices",
    "clear_jf_cache",
    "CNR_TABLE_B1",
    "format_trace_html",
    "format_trace_latex",
    "format_trace_table",
    "fourier_basis",
    "generate_f_dgp1",
    "generate_f_dgp2",
    "generate_nf_dgp1",
    "generate_nf_dgp2",
    "generate_nf_dgp3",
    "generate_nf_dgp4",
    "jf_moments",
    "jf_p_value",
    "jf_quantile",
    "johansen_fourier",
    "model_specs",
    "plot_eigenvalues",
    "plot_limit_density",
    "plot_long_run",
    "plot_residual_diagnostics",
    "plot_risk_premium",
    "plot_series",
    "psy_wald_test",
    "sample_jgb_data",
    "select_frequencies",
    "select_frequencies_univariate",
    "set_paper_theme",
    "simulate_limit_distribution",
    "simulate_limit_moments"
  ],
  "_help": [
    {
      "page": "fjohansen-package",
      "title": "fjohansen: Johansen Cointegration Test with Fourier-Type Smooth Nonlinear Trends",
      "topics": [
        "fjohansen-package",
        "fjohansen"
      ]
    },
    {
      "page": "build_design_matrices",
      "title": "Build Z0, Z1, Z2 design matrices for the reduced-rank regression",
      "topics": [
        "build_design_matrices"
      ]
    },
    {
      "page": "clear_jf_cache",
      "title": "Clear the in-memory simulation cache.",
      "topics": [
        "clear_jf_cache"
      ]
    },
    {
      "page": "CNR_TABLE_B1",
      "title": "Approximate limit quantiles for the CNR model (Table B1 of Kurita & Shintani 2025).",
      "topics": [
        "CNR_TABLE_B1"
      ]
    },
    {
      "page": "fourier_basis",
      "title": "Build the Fourier deterministic basis",
      "topics": [
        "fourier_basis"
      ]
    },
    {
      "page": "jf_dgps",
      "title": "Data-generating processes from Section 5 of Kurita & Shintani (2025)",
      "topics": [
        "generate_f_dgp1",
        "generate_f_dgp2",
        "generate_nf_dgp1",
        "generate_nf_dgp2",
        "generate_nf_dgp3",
        "generate_nf_dgp4",
        "jf_dgps"
      ]
    },
    {
      "page": "jf_moments",
      "title": "Mean and variance of the limit distribution",
      "topics": [
        "jf_moments"
      ]
    },
    {
      "page": "jf_p_value",
      "title": "Gamma-approximation p-value of an observed trace statistic",
      "topics": [
        "jf_p_value"
      ]
    },
    {
      "page": "jf_quantile",
      "title": "Quantile of the limit distribution",
      "topics": [
        "jf_quantile"
      ]
    },
    {
      "page": "jf_tables",
      "title": "Publication-quality table formatters for the trace test",
      "topics": [
        "format_trace_html",
        "format_trace_latex",
        "format_trace_table",
        "jf_tables"
      ]
    },
    {
      "page": "johansen_fourier",
      "title": "Johansen-Fourier cointegration test",
      "topics": [
        "johansen_fourier"
      ]
    },
    {
      "page": "model_specs",
      "title": "Model specifications used by 'johansen_fourier'",
      "topics": [
        "model_specs"
      ]
    },
    {
      "page": "plot_eigenvalues",
      "title": "Bar plot of the Johansen eigenvalues",
      "topics": [
        "plot_eigenvalues"
      ]
    },
    {
      "page": "plot_limit_density",
      "title": "Plot the limit-distribution density (paper's Figs. 1-2)",
      "topics": [
        "plot_limit_density"
      ]
    },
    {
      "page": "plot_long_run",
      "title": "Plot estimated cointegrating relations",
      "topics": [
        "plot_long_run"
      ]
    },
    {
      "page": "plot_residual_diagnostics",
      "title": "Residual diagnostics (paper's Fig. 12)",
      "topics": [
        "plot_residual_diagnostics"
      ]
    },
    {
      "page": "plot_risk_premium",
      "title": "Implied risk-premium decomposition (paper's Fig. 13)",
      "topics": [
        "plot_risk_premium"
      ]
    },
    {
      "page": "plot_series",
      "title": "Plot a (T x p) data set as multi-panel time series (Fig. 11 of the paper)",
      "topics": [
        "plot_series"
      ]
    },
    {
      "page": "psy_wald_test",
      "title": "Perron-Shintani-Yabu (2021) FGLS Wald test",
      "topics": [
        "psy_wald_test"
      ]
    },
    {
      "page": "sample_jgb_data",
      "title": "Synthetic JGB-yield surrogate (Section 6 illustration)",
      "topics": [
        "sample_jgb_data"
      ]
    },
    {
      "page": "select_frequencies",
      "title": "Frequency selection for a multivariate panel",
      "topics": [
        "select_frequencies"
      ]
    },
    {
      "page": "select_frequencies_univariate",
      "title": "General-to-specific frequency selection for a univariate series",
      "topics": [
        "select_frequencies_univariate"
      ]
    },
    {
      "page": "set_paper_theme",
      "title": "Apply the paper-style ggplot2 theme (sunny palette)",
      "topics": [
        "set_paper_theme"
      ]
    },
    {
      "page": "simulate_limit_distribution",
      "title": "Simulate the limiting Johansen-Fourier trace distribution",
      "topics": [
        "simulate_limit_distribution"
      ]
    },
    {
      "page": "simulate_limit_moments",
      "title": "Simulate moments of the limiting distribution",
      "topics": [
        "simulate_limit_moments"
      ]
    }
  ],
  "_readme": "https://github.com/cran/fjohansen/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "fjohansen",
  "_universes": [
    "cran",
    "merwanroudane"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-02T18:58:36.000Z",
      "distro": "noble",
      "commit": "24fccca26138d7b0fb74f773823235d11835590e",
      "fileid": "710ef05025b5ba147cb7978f2ccffee9b6c5c29e7f1c4d8505d403864ba23be1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26841197522"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-02T19:13:43.000Z",
      "distro": "noble",
      "commit": "24fccca26138d7b0fb74f773823235d11835590e",
      "fileid": "61edb4082ae54bec224ea94b1763755e59c789c3af087460fb809505357f92ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26841197522"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-06-02T18:58:45.000Z",
      "commit": "24fccca26138d7b0fb74f773823235d11835590e",
      "fileid": "50271f187ce922ab8602c632d85db25dc05af0d5e072a238c79794aea197938e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26841197522"
    }
  ]
}