{
  "_id": "6a105126acfb0bcc41ca1387",
  "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-05-10 05:11:49 UTC",
    "User": "root"
  },
  "Author": "Mao Kobayashi [aut, cre]",
  "Maintainer": "Mao Kobayashi <kobamao.jp@gmail.com>",
  "MD5sum": "43eb42e1dfb261f6430d1baf3a51e3bd",
  "_user": "indenkun",
  "_type": "src",
  "_file": "kvr2_0.2.0.9000.tar.gz",
  "_fileid": "f07080b5c4735b464bec2a22828fe69ea1f47bb1cadea29c3cc784df8b329b42",
  "_filesize": 779558,
  "_sha256": "f07080b5c4735b464bec2a22828fe69ea1f47bb1cadea29c3cc784df8b329b42",
  "_created": "2026-05-10T05:11:49.000Z",
  "_published": "2026-05-22T12:50:46.261Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77382866179,
      "time": 144,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6901140030"
    },
    {
      "job": 77382865834,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901139519"
    },
    {
      "job": 77382866056,
      "time": 167,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6901138947"
    },
    {
      "job": 77382866218,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901137651"
    },
    {
      "job": 77382865431,
      "time": 194,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901127346"
    },
    {
      "job": 77382865238,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7160888154"
    },
    {
      "job": 77382866204,
      "time": 87,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6901134552"
    },
    {
      "job": 77382866137,
      "time": 80,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6901134018"
    },
    {
      "job": 77382866055,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901135096"
    }
  ],
  "_buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 64451481
  },
  "_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"
  },
  "_downloads": {
    "count": 162,
    "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.0",
  "_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",
    "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-05-10T05:14:06.000Z",
      "distro": "noble",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "9f311d4f520793ed75237adbe21fbb2b29e1a3ee79a9ba2747a89ba539f9df46",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-05-10T05:14:02.000Z",
      "distro": "noble",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "669ed5610cfb0ba872aa28fa9c32e005a350bfa990233ed4a028d783d94fb677",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-05-10T05:14:06.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "c0d23397491a78e03a8d08e487c81e123e78f74b36741d35f2470f3cab934799",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-05-10T05:13:46.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "ddcccfec60461ceb89918dd9c27479ef65bef88e5dc7f24dcae6013bff51deb2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-05-10T05:12:59.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "497dfcf42eb4dfa674cee624fc3f75173ccddc3083aedc7a9db201dbaf1b725b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-05-10T05:12:55.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "4c4542737c93f350965d21fc8faa475aaed1d392b5603c603d5cad5d171c83c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-05-10T05:13:05.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "c5a3df8aff57895be9e7535447a461179ff1c591c2f3bd949b5d86e7983ab520",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9000",
      "date": "2026-05-22T12:50:23.000Z",
      "commit": "5df8d5dc85d67bdf4c11b3709e3e92c555a0b9c1",
      "fileid": "f170f900807a759260ec43156526ef7e04964ee00e9671dbefaada7f4c68d91c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/indenkun/actions/runs/25620452366"
    }
  ]
}