{
  "_id": "6a4f6ffc21b18e1548501de2",
  "Package": "kvr2",
  "Type": "Package",
  "Title": "Calculate and Compare Multiple Definitions of Coefficient of\nDetermination",
  "Version": "0.2.0.9000",
  "Authors@R": "c(\nperson(\n\"Mao\", \"Kobayashi\",\nemail = \"kobamao.jp@gmail.com\",\nrole = c(\"aut\", \"cre\")\n)\n)",
  "Description": "Calculate nine types of coefficients of determination\n(R-squared) based on the classification by Kvalseth (1985)\n<doi:10.1080/00031305.1985.10479448>. This package is designed\nfor educational purposes to demonstrate how R-squared values\ncan fluctuate depending on the choice of formula, particularly\nin power regression models or linear models without an\nintercept. By providing a comprehensive list of definitions, it\nhelps users understand the mathematical sensitivity of\ngoodness-of-fit indices.",
  "URL": "https://github.com/indenkun/kvr2, https://indenkun.github.io/kvr2/",
  "BugReports": "https://github.com/indenkun/kvr2/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://indenkun.r-universe.dev",
  "Date/Publication": "2026-03-11 01:15:13 UTC",
  "RemoteUrl": "https://github.com/indenkun/kvr2",
  "RemoteRef": "HEAD",
  "RemoteSha": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-09 09:51:48 UTC",
    "User": "root"
  },
  "Author": "Mao Kobayashi [aut, cre]",
  "Maintainer": "Mao Kobayashi <kobamao.jp@gmail.com>",
  "_user": "indenkun",
  "_type": "src",
  "_file": "kvr2_0.2.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/34f17c637d708507b30dc6169c4202aaf5c4ca11f2393e1ec2a3a687fc86a6c5",
  "_filesize": 776709,
  "_sha256": "34f17c637d708507b30dc6169c4202aaf5c4ca11f2393e1ec2a3a687fc86a6c5",
  "_expires": "2026-10-17T09:55:06.000Z",
  "_created": "2026-07-09T09:51:48.000Z",
  "_published": "2026-07-09T09:55:08.811Z",
  "_jobs": [
    {
      "job": 86089855888,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8195056559"
    },
    {
      "job": 86089855901,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195061896"
    },
    {
      "job": 86089855893,
      "time": 81,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8195035875"
    },
    {
      "job": 86089855929,
      "time": 134,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195056140"
    },
    {
      "job": 86089227419,
      "time": 192,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195003162"
    },
    {
      "job": 86089855876,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8195049466"
    },
    {
      "job": 86089855946,
      "time": 97,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8195042046"
    },
    {
      "job": 86089856007,
      "time": 91,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8195039591"
    },
    {
      "job": 86089856054,
      "time": 87,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195038472"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080",
  "_status": "success",
  "_upstream": "https://github.com/indenkun/kvr2",
  "_commit": {
    "id": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
    "author": "indenkun <kobamao.jp@gmail.com>",
    "committer": "indenkun <kobamao.jp@gmail.com>",
    "message": "v0.2.0.9000\n",
    "time": 1773191713
  },
  "_maintainer": {
    "name": "Mao Kobayashi",
    "email": "kobamao.jp@gmail.com",
    "login": "indenkun",
    "description": "",
    "uuid": 64451481
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "insight",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "indenkun",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-06",
      "n": 11
    },
    {
      "week": "2026-07",
      "n": 24
    },
    {
      "week": "2026-09",
      "n": 6
    },
    {
      "week": "2026-11",
      "n": 9
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-02-13"
    },
    {
      "name": "v0.2.0",
      "date": "2026-03-11"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "indenkun",
      "count": 50,
      "uuid": 64451481
    }
  ],
  "_userbio": {
    "uuid": 64451481,
    "type": "user",
    "name": "Mao Kobayashi",
    "followers": 5
  },
  "_downloads": {
    "count": 246,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/kvr2"
  },
  "_devurl": "https://github.com/indenkun/kvr2",
  "_pkgdown": "https://indenkun.github.io/kvr2/",
  "_searchresults": 9,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/kvr2.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/indenkun/kvr2",
  "_realowner": "indenkun",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-02-16"
    },
    {
      "version": "0.2.0",
      "date": "2026-03-10"
    }
  ],
  "_exports": [
    "comp_fit",
    "comp_model",
    "MAE",
    "model_info",
    "MSE",
    "plot_diagnostic",
    "plot_kvr2",
    "r2",
    "r2_1",
    "r2_2",
    "r2_3",
    "r2_4",
    "r2_5",
    "r2_6",
    "r2_7",
    "r2_8",
    "r2_9",
    "r2_adjusted",
    "RMSE"
  ],
  "_help": [
    {
      "page": "comp_kvr2",
      "title": "Calculate Comparative Fit Measures for Regression Models",
      "topics": [
        "comp_fit",
        "MAE",
        "MSE",
        "RMSE"
      ]
    },
    {
      "page": "comp_model",
      "title": "Contrast R-squared Definitions: Intercept vs. No-Intercept",
      "topics": [
        "comp_model"
      ]
    },
    {
      "page": "model_info",
      "title": "Get Model Information Used for Calculations",
      "topics": [
        "model_info"
      ]
    },
    {
      "page": "plot_diagnostic",
      "title": "Plot Observed vs Predicted Values",
      "topics": [
        "plot_diagnostic"
      ]
    },
    {
      "page": "plot_kvr2",
      "title": "Plot Method for Kvalseth's R-squared Objects",
      "topics": [
        "plot_kvr2"
      ]
    },
    {
      "page": "plot.comp_model",
      "title": "Plot Comparison of Model Specifications",
      "topics": [
        "plot.comp_model"
      ]
    },
    {
      "page": "plot.r2_kvr2",
      "title": "Plot Method for r2_kvr2 Objects",
      "topics": [
        "plot.r2_kvr2"
      ]
    },
    {
      "page": "print.comp_model",
      "title": "Print Method for Model Comparison Objects",
      "topics": [
        "print.comp_model"
      ]
    },
    {
      "page": "print.kvr2",
      "title": "Print Methods for r2 and comp_fit calculation Objects",
      "topics": [
        "print.comp_kvr2",
        "print.r2_kvr2"
      ]
    },
    {
      "page": "r2_kvr2",
      "title": "Calculate Multiple Definitions of Coefficient of Determination (R-squared)",
      "topics": [
        "r2",
        "r2_1",
        "r2_2",
        "r2_3",
        "r2_4",
        "r2_5",
        "r2_6",
        "r2_7",
        "r2_8",
        "r2_9"
      ]
    },
    {
      "page": "r2_adjusted",
      "title": "Calculate the Adjusted Determination Coefficient",
      "topics": [
        "r2_adjusted"
      ]
    }
  ],
  "_readme": "https://github.com/indenkun/kvr2/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "insight",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "internal-design.Rmd",
      "filename": "internal-design.html",
      "title": "Internal Design",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Internal Design of kvr2",
        "Overview",
        "Data Flow Architecture",
        "1. Extraction Phase (values_lm)",
        "2. Computation and Metadata Injection (r2, comp_model)",
        "3. Dispatch and Visualization Phase",
        "Handling Non-Standard Evaluation (NSE)",
        "Dependency Strategy",
        "Troubleshooting and Maintenance"
      ],
      "created": "2026-02-24 07:17:04",
      "modified": "2026-03-10 11:23:56",
      "commits": 2
    },
    {
      "source": "Pitfalls_of_R2.Rmd",
      "filename": "Pitfalls_of_R2.html",
      "title": "The Pitfalls of R-squared: Understanding Mathematical Sensitivity",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction: Why $R^2$ is Not Unique",
        "The Eight + One Definitions",
        "Standard Definitions",
        "Definitions for No-Intercept Models",
        "Robust Definition",
        "When $R^2$ Goes Negative: Interpretation and Risks",
        "Meaning of Negative Values",
        "Case Study: Forcing a No-Intercept Model",
        "The Transformation Trap (Power Models)",
        "Distinguishing Variable Names from Functions",
        "Transparency and Metadata: Beyond the Numbers",
        "Inspecting Model Information",
        "Enhanced Console Output",
        "Technical Note: How R Calculates",
        "The Shift in Baseline",
        "Case Study: The Danger of No-Intercept Models",
        "The Trap",
        "Visualizing the Sensitivity of R-squared",
        "Comparing Intercept vs. No-Intercept Models",
        "Practical Example: The Sensitivity of $R^2$",
        "1. The Inflation of $R^2_2$",
        "2. The Drop in Predictive Accuracy",
        "Adjusted R-squared Comparison",
        "Visualizing the Comparison: The Diagnostic Dashboard",
        "Key Features of the Dashboard:",
        "Example: When $R^2$ Breaks (The Importance of Visuals)",
        "A Note on Plot Customization",
        "Conclusion: A Multi-Metric Approach",
        "References"
      ],
      "created": "2026-02-05 13:29:22",
      "modified": "2026-03-10 11:23:56",
      "commits": 9
    }
  ],
  "_score": 4.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "kvr2",
  "_universes": [
    "indenkun"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:53:56.000Z",
      "distro": "resolute",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/993eefde0282ab87bcee86cd3ca6c55dc16322298ac7fe9e4efbc03e705630aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:54:03.000Z",
      "distro": "resolute",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/1d714f98f8b07c8e6ceefe25de1c047df1041b9a96088eb047bcd887c5847c7c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:53:08.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/27b1be759d45fd8b393985fdc6a727e6776042e19d0e65ffc2281b22ad35c914",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:53:47.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/d0e1cafd325570c6a0bbceab9843d9f563fcbc4f0bd6544d5d87c2548dae5eaf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:53:58.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/40c7847a0547e96b222635476ee3ac08da6b078064cf2365dfb92b4d19c1107b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:52:58.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/d8f181753ce4c57933d429c83e278bbd113babe6fad764e051fb45c22bbb9fdd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:53:01.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/9cc0362662810369f8f1f497772c9a9603cb3013519f5832ad87b2200cea9a90",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-07-09T09:53:00.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "https://r2.ropensci.org/451338725c22b74b85c9acdf2c472c2c2e91dbec55bfa50ae14af6e6bfcdd28c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/29009458080"
    }
  ]
}