{
  "_id": "6a104017acfb0bcc41c9d01a",
  "Package": "klovan",
  "Title": "Geostatistics Methods and Klovan Data",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(given = c(\"Jonathan\", \"E\"), family = \"Gordon\", email = \"jgordon5@bowdoin.edu\", role = c(\"aut\"), comment = c(ORCID = \"0009-0007-5958-7386\")),\nperson(given = c(\"Eric\", \"K\"), family = \"Helfer\", email = \"ekh80@case.edu\", role = c(\"aut\"), comment = c(ORCID = \"0000-0002-8958-7690\")),\nperson(given = c(\"Hope\", \"E\"), family = \"Omodolor\", email = \"hxo76@case.edu\", role = c(\"aut\"), comment = c(ORCID = \"0009-0005-7842-406X\")),\nperson(given = c(\"Jeffery\", \"M\"), family = \"Yarus\", email = \"jmy41@case.edu\", role = c(\"aut\"), comment = c(ORCID = \"0000-0002-9331-9568\")),\nperson(given = c(\"Roger\", \"H\"), family = \"French\", email = \"rxf131@case.edu\", role = c(\"aut\", \"cre\", \"cph\"), comment = c(ORCID = \"0000-0002-6162-0532\")))",
  "Description": "A comprehensive set of geostatistical, visual, and\nanalytical methods, in conjunction with the expanded version of\nthe acclaimed J.E. Klovan's mining dataset, are included in\n'klovan'. This makes the package an excellent learning resource\nfor Principal Component Analysis (PCA), Factor Analysis (FA),\nkriging, and other geostatistical techniques. Originally\npublished in the 1976 book 'Geological Factor Analysis', the\nincluded mining dataset was assembled by Professor J. E. Klovan\nof the University of Calgary. Being one of the first\napplications of FA in the geosciences, this dataset has\nsignificant historical importance. As a well-regarded and\npublished dataset, it is an excellent resource for\ndemonstrating the capabilities of PCA, FA, kriging, and other\ngeostatistical techniques in geosciences. For those interested\nin these methods, the 'klovan' datasets provide a valuable and\nillustrative resource. Note that some methods require the\n'RGeostats' package. Please refer to the README or\nAdditional_repositories for installation instructions. This\nmaterial is based upon research in the Materials Data Science\nfor Stockpile Stewardship Center of Excellence (MDS3-COE), and\nsupported by the Department of Energy's National Nuclear\nSecurity Administration under Award Number DE-NA0004104.",
  "License": "MIT + file LICENSE",
  "Additional_repositories": "http://rgeostats.free.fr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.0",
  "Language": "en-US",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-11 08:31:41 UTC",
    "User": "root"
  },
  "Author": "Jonathan E Gordon [aut]\n(<https://orcid.org/0009-0007-5958-7386>), Eric K Helfer [aut]\n(<https://orcid.org/0000-0002-8958-7690>), Hope E Omodolor\n[aut] (<https://orcid.org/0009-0005-7842-406X>), Jeffery M\nYarus [aut] (<https://orcid.org/0000-0002-9331-9568>), Roger H\nFrench [aut, cre, cph]\n(<https://orcid.org/0000-0002-6162-0532>)",
  "Maintainer": "Roger H French <rxf131@case.edu>",
  "Config/pak/sysreqs": "libabsl-dev cmake libfontconfig1-dev\nlibfreetype6-dev libgdal-dev gdal-bin libgeos-dev libicu-dev\nlibssl-dev libproj-dev libsqlite3-dev libudunits2-dev",
  "Repository": "https://frenchrh.r-universe.dev",
  "Date/Publication": "2024-02-02 02:31:12 UTC",
  "RemoteUrl": "https://github.com/cran/klovan",
  "RemoteRef": "HEAD",
  "RemoteSha": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
  "MD5sum": "9b21910b6249ab49e9aaf197b9056f8e",
  "_user": "frenchrh",
  "_type": "src",
  "_file": "klovan_0.1.0.tar.gz",
  "_fileid": "47b93d2c7b2a9624f61b9cf9121167cc7aa513fb66f135daa2b827b4f2030d6b",
  "_filesize": 2844056,
  "_sha256": "47b93d2c7b2a9624f61b9cf9121167cc7aa513fb66f135daa2b827b4f2030d6b",
  "_created": "2026-05-11T08:31:41.000Z",
  "_published": "2026-05-22T11:37:59.967Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77371836400,
      "time": 200,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6913846629"
    },
    {
      "job": 77371836237,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6913840885"
    },
    {
      "job": 77371836173,
      "time": 258,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6913851762"
    },
    {
      "job": 77371836458,
      "time": 187,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6913831548"
    },
    {
      "job": 77371835786,
      "time": 254,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913783111"
    },
    {
      "job": 77371835925,
      "time": 139,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159566336"
    },
    {
      "job": 77371836557,
      "time": 189,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6913843633"
    },
    {
      "job": 77371836653,
      "time": 137,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6913827101"
    },
    {
      "job": 77371836511,
      "time": 136,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6913826768"
    }
  ],
  "_buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/klovan",
  "_commit": {
    "id": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
    "author": "Roger H French <rxf131@case.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1706841072
  },
  "_maintainer": {
    "name": "Roger H French",
    "email": "rxf131@case.edu",
    "login": "frenchrh",
    "linkedin": "in/rogerhfrench",
    "orcid": "0000-0002-6162-0532",
    "uuid": 170105229
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "fields",
      "role": "Imports"
    },
    {
      "package": "GGally",
      "role": "Imports"
    },
    {
      "package": "ggforce",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggrepel",
      "role": "Imports"
    },
    {
      "package": "gstat",
      "role": "Imports"
    },
    {
      "package": "metR",
      "role": "Imports"
    },
    {
      "package": "pracma",
      "role": "Imports"
    },
    {
      "package": "sp",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "sf",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "RGeostats",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "frenchrh",
      "count": 1,
      "uuid": 170105229
    }
  ],
  "_userbio": {
    "uuid": 170105229,
    "type": "user",
    "name": "Roger H. French",
    "description": "Roger H. French, Kyocera Prof., Case Western Reserve University. Director of DOE-NNSA Center of Excellence for Materials Data Science for Stockpile Stewardship."
  },
  "_downloads": {
    "count": 630,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/klovan"
  },
  "_searchresults": 1,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/klovan.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "manual.pdf"
  ],
  "_realowner": "frenchrh",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-02-01"
    }
  ],
  "_exports": [
    "calc_eigenvalues",
    "calc_eigenvectors",
    "cardinal_sine_model",
    "cauchy_model",
    "cor_mtrx",
    "correlation_plot",
    "cosinus_model",
    "covar_mtrx",
    "eigen_contribution",
    "exponential_model",
    "factor_analysis",
    "factor_cor_plot",
    "factor_score_plot",
    "gamma_model",
    "gaussian_model",
    "inv_dis_wt",
    "kriging",
    "kriging.auto",
    "manage_outliers",
    "matern_model",
    "order_1_gc_model",
    "pc_cor_plot",
    "power_model",
    "print_model_names",
    "quadratic_exponential_model",
    "range_transform",
    "Rgeo_database",
    "Rgeo_kriging",
    "Rgeo_kriging_plot",
    "Rgeo_vario_construct_plot",
    "Rgeo_vario_model",
    "scree_plot",
    "spherical_model",
    "stable_model",
    "triangle_model",
    "vario_plot"
  ],
  "_datasets": [
    {
      "name": "Klovan_2D_all_outlier",
      "title": "Klovan mining dataset",
      "object": "Klovan_2D_all_outlier",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "rank",
        "C_X",
        "C_Y",
        "P_Elong",
        "P_Fe",
        "P_Fold",
        "P_Fract",
        "P_Mg",
        "P_Na",
        "P_Space",
        "P_Sulfide",
        "P_Veins",
        "P_XLSize"
      ],
      "rows": 208,
      "table": true,
      "tojson": true
    },
    {
      "name": "Klovan_Row80",
      "title": "Klovan mining dataset",
      "object": "Klovan_Row80",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "rank",
        "C_X",
        "C_Y",
        "P_Elong",
        "P_Fe",
        "P_Fold",
        "P_Fract",
        "P_Mg",
        "P_Na",
        "P_Space",
        "P_Sulfide",
        "P_Veins",
        "P_XLSize"
      ],
      "rows": 80,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calc_eigenvalues",
      "title": "Calculate Eigenvalues",
      "topics": [
        "calc_eigenvalues"
      ]
    },
    {
      "page": "calc_eigenvectors",
      "title": "Calculate Eigenvectors",
      "topics": [
        "calc_eigenvectors"
      ]
    },
    {
      "page": "cardinal_sine_model",
      "title": "Cardinal Sine Model",
      "topics": [
        "cardinal_sine_model"
      ]
    },
    {
      "page": "cauchy_model",
      "title": "Cauchy Model",
      "topics": [
        "cauchy_model"
      ]
    },
    {
      "page": "cor_mtrx",
      "title": "correlation matrix",
      "topics": [
        "cor_mtrx"
      ]
    },
    {
      "page": "correlation_plot",
      "title": "Correlation Plot",
      "topics": [
        "correlation_plot"
      ]
    },
    {
      "page": "cosinus_model",
      "title": "Cosinus Model",
      "topics": [
        "cosinus_model"
      ]
    },
    {
      "page": "covar_mtrx",
      "title": "Create Co-variance Matrix",
      "topics": [
        "covar_mtrx"
      ]
    },
    {
      "page": "eigen_contribution",
      "title": "Calculate Eigen Contribution",
      "topics": [
        "eigen_contribution"
      ]
    },
    {
      "page": "exponential_model",
      "title": "Exponential Model",
      "topics": [
        "exponential_model"
      ]
    },
    {
      "page": "factor_analysis",
      "title": "Perform Factor Analysis",
      "topics": [
        "factor_analysis"
      ]
    },
    {
      "page": "factor_cor_plot",
      "title": "factor correlation plot",
      "topics": [
        "factor_cor_plot"
      ]
    },
    {
      "page": "factor_score_plot",
      "title": "Map the Factor Scores",
      "topics": [
        "factor_score_plot"
      ]
    },
    {
      "page": "gamma_model",
      "title": "Gamma Model",
      "topics": [
        "gamma_model"
      ]
    },
    {
      "page": "gaussian_model",
      "title": "Gaussian Model",
      "topics": [
        "gaussian_model"
      ]
    },
    {
      "page": "inv_dis_wt",
      "title": "Inverse Distance Weighting",
      "topics": [
        "inv_dis_wt"
      ]
    },
    {
      "page": "Klovan_2D_all_outlier",
      "title": "Klovan mining dataset",
      "topics": [
        "Klovan_2D_all_outlier"
      ]
    },
    {
      "page": "Klovan_Row80",
      "title": "Klovan mining dataset",
      "topics": [
        "Klovan_Row80"
      ]
    },
    {
      "page": "kriging",
      "title": "Perform Kriging Interpolation",
      "topics": [
        "kriging"
      ]
    },
    {
      "page": "kriging.auto",
      "title": "Automatic Kriging Interpolation with Factor Analysis Preprocessing",
      "topics": [
        "kriging.auto"
      ]
    },
    {
      "page": "manage_outliers",
      "title": "Outlier Management",
      "topics": [
        "manage_outliers"
      ]
    },
    {
      "page": "matern_model",
      "title": "Matern Model",
      "topics": [
        "matern_model"
      ]
    },
    {
      "page": "order_1_gc_model",
      "title": "Order-1 G.C. (General Covariance) Model",
      "topics": [
        "order_1_gc_model"
      ]
    },
    {
      "page": "pc_cor_plot",
      "title": "Principal Component Correlation Plot",
      "topics": [
        "pc_cor_plot"
      ]
    },
    {
      "page": "power_model",
      "title": "Power Model",
      "topics": [
        "power_model"
      ]
    },
    {
      "page": "print_model_names",
      "title": "Print Model Names",
      "topics": [
        "print_model_names"
      ]
    },
    {
      "page": "quadratic_exponential_model",
      "title": "Quadratic Exponential Model",
      "topics": [
        "quadratic_exponential_model"
      ]
    },
    {
      "page": "range_transform",
      "title": "range transform",
      "topics": [
        "range_transform"
      ]
    },
    {
      "page": "Rgeo_database",
      "title": "Database Construction",
      "topics": [
        "Rgeo_database"
      ]
    },
    {
      "page": "Rgeo_kriging",
      "title": "Kriging Interpolation for Databases",
      "topics": [
        "Rgeo_kriging"
      ]
    },
    {
      "page": "Rgeo_kriging_plot",
      "title": "Plotting Kriged Database",
      "topics": [
        "Rgeo_kriging_plot"
      ]
    },
    {
      "page": "Rgeo_vario_construct_plot",
      "title": "Experimental Ominidirectional Variogram Plot using Regostats",
      "topics": [
        "Rgeo_vario_construct_plot"
      ]
    },
    {
      "page": "Rgeo_vario_model",
      "title": "Ominidirectional Variogram Model using Rgeostats",
      "topics": [
        "Rgeo_vario_model"
      ]
    },
    {
      "page": "scree_plot",
      "title": "scree plot",
      "topics": [
        "scree_plot"
      ]
    },
    {
      "page": "spherical_model",
      "title": "Spherical Model",
      "topics": [
        "spherical_model"
      ]
    },
    {
      "page": "stable_model",
      "title": "Stable Model",
      "topics": [
        "stable_model"
      ]
    },
    {
      "page": "triangle_model",
      "title": "Triangle Model",
      "topics": [
        "triangle_model"
      ]
    },
    {
      "page": "vario_plot",
      "title": "Create Variogram Plot",
      "topics": [
        "vario_plot"
      ]
    }
  ],
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "cachem",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "crayon",
    "data.table",
    "DBI",
    "digest",
    "dotCall64",
    "dplyr",
    "e1071",
    "farver",
    "fastmap",
    "fields",
    "FNN",
    "forcats",
    "Formula",
    "formula.tools",
    "generics",
    "GGally",
    "ggforce",
    "ggplot2",
    "ggrepel",
    "ggstats",
    "glue",
    "gstat",
    "gtable",
    "hms",
    "intervals",
    "isoband",
    "jsonlite",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "lubridate",
    "magrittr",
    "maps",
    "MASS",
    "memoise",
    "metR",
    "operator.tools",
    "patchwork",
    "pillar",
    "pkgconfig",
    "plyr",
    "polyclip",
    "pracma",
    "prettyunits",
    "progress",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "sftime",
    "sp",
    "spacetime",
    "spam",
    "stars",
    "stringi",
    "stringr",
    "systemfonts",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tweenr",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk",
    "xts",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "Klovan_data.Rmd",
      "filename": "Klovan_data.html",
      "title": "Klovan_Data",
      "author": "Jonathan Gordon, Hope Omodolor, Eric Helfer, Jeffrey Yarus, Roger French",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Data Description",
        "Load data",
        "Correlation plot"
      ],
      "created": "2024-02-02 02:31:12",
      "modified": "2024-02-02 02:31:12",
      "commits": 1
    },
    {
      "source": "Klovan_Rgeo.Rmd",
      "filename": "Klovan_Rgeo.html",
      "title": "Rgeo_Klovan",
      "author": "Jonathan Gordon, Hope Omodolor, Eric Helfer, Jeffrey Yarus, Roger French",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is Klovan v0.0.9 and what does it do?",
        "The \"Klovan v0.0.9\" package offers a comprehensive set of geostatistical, visual, and analytical methods, in conjunction with the expanded version of the acclaimed J.E. Klovan's mining dataset. This makes the package an excellent learning resource for Principal Component Analysis (PCA), Factor Analysis (FA), kriging, and other geostatistical techniques. Originally published in the 1976 book 'Geological Factor Analysis', the included mining dataset was assembled by Professor J. E. Klovan of the University of Calgary. Being one of the first applications of FA in the geosciences, this dataset has significant historical importance. As a well-regarded and published dataset, it is an excellent resource for demonstrating the capabilities of PCA, FA, kriging, and other geostatistical techniques in geosciences. For those interested in these methods, the 'Klovan'dataset provides a valuable and illustrative resource. Note that some methods in the Klovan Package require the Rgeostats package. Please refer to the README for installation instructions. This package was supported by the MDS3 Center for Materials Data Science for Stockpile Stewardship.",
        "Here we show how to use the packages features with the use of the suggested Rgeostats package",
        "Installation instructions here: http://rgeostats.free.fr/download.php",
        "Install and load the package",
        "After downloading the package file “Klovan_0.0.9.tar.gz”, put it in your preferred working directory and run both of the following lines:",
        "Alternatively in your Rstudio console use this code:",
        "Loading data",
        "In the code above, we load the required data from the klovan package.",
        "Here we create a database from our klovan dataframe to use in our analysis.",
        "Print the created database",
        "In this block, we build a database using the Rgeo_database() function and then print it.",
        "Here, we construct and plot the experimental variogram for our data. This plot will help us to determine how to build our variogram model.",
        "Print the fitted model parameters",
        "Based on our experimental variogram, we fit a variogram model using the Rgeo_vario_model() function. The resulting model parameters are printed for review.",
        "Perform kriging based on the variogram model",
        "Print the kriging results",
        "Next, we perform kriging based on our variogram model. The kriging results are printed.",
        "Finally, we plot the kriging estimation results. This visualization can be used to better understand the spatial distribution of the \"RC1\" variable.",
        "Remember, this analysis is based on the \"RC1\" factor. To analyze other factors, run the analysis again from the database building stage, changing the factor as necessary."
      ],
      "created": "2024-02-02 02:31:12",
      "modified": "2024-02-02 02:31:12",
      "commits": 1
    },
    {
      "source": "klovan_vignettes.Rmd",
      "filename": "klovan_vignettes.html",
      "title": "Klovan v0.0.9",
      "author": "Jonathan Gordon, Hope Omodolor, Eric Helfer, Jeffrey Yarus, Roger French",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is Klovan v0.0.9 and what does it do?",
        "The \"Klovan v0.0.9\" package offers a comprehensive set of geostatistical, visual, and analytical methods, in conjunction with the expanded version of the acclaimed J.E. Klovan's mining dataset. This makes the package an excellent learning resource for Principal Component Analysis (PCA), Factor Analysis (FA), kriging, and other geostatistical techniques. Originally published in the 1976 book 'Geological Factor Analysis', the included mining dataset was assembled by Professor J. E. Klovan of the University of Calgary. Being one of the first applications of FA in the geosciences, this dataset has significant historical importance. As a well-regarded and published dataset, it is an excellent resource for demonstrating the capabilities of PCA, FA, kriging, and other geostatistical techniques in geosciences. For those interested in these methods, the 'Klovan' dataset provides a valuable and illustrative resource. Note that some methods in the Klovan Package require the Rgeostats package. Please refer to the README for installation instructions. This package was supported by the MDS3 Center for Materials Data Science for Stockpile Stewardship.",
        "Here we show how to use the packages features without the use of the suggested Rgeostats package",
        "Install and load the package",
        "After downloading the package file “Klovan_0.0.9.tar.gz”, put it in your preferred working directory and run both of the following lines:",
        "Alternatively in your Rstudio console use this code:",
        "Run code to load data and try transforming it",
        "The data we are using is the Klovan mining data set. Which is one of the first applications of FA in the geosciences. Here we know the position of an ore body and we will use geostatistical techniques to find another one without having to start digging.",
        "Principal Component Analysis (PCA)",
        "Principal Component Analysis or PCA is generally used for “data reduction” in order to simplify data sets and to avoid unstable models due to Collinearity.  Collinearity occurs when two variables share similar information – one variable can be predicted by the other. This may result in overfitting models. PCA is an unsupervised method and creates a new set of uncorrelated variables containing the same information as the original data set. The new set of variables, called principal components, are ordered, and thus summarize decreasing proportions of the total original variation. Therefore the first few PC’s generally contain most of the total variance.  PCA begins with an eigendecomposition of a correlation matrix or a variance-covariance matrix. It produces a number of properties that could give insight into your data.  Some of the key properties are:",
        "Here we can use a covariance matrix, but we must normalize the data first. This is critical because the scales of each variable can be very different and  can influence weighting. Thus, a variable with large numbers can have disproportionate influence compared with variables with small numbers.",
        "First, the Covariance Matrix is calculated (more precisely, the variance co-variance matrix.  Recall that the diagonal is the variance.  The variance = Sum ((Xi-Mean)^2)/n.  The co-variance = Sum ((Xi - Yi)^2)/N.",
        "Here we will build a co-variance matrix and use PCA to find Eigenvectors and Eigenvalues",
        "Not very exciting yet!  It gets better...",
        "In the next step we calculate the sum of all the eigenvalues.  This is in preparation to calculate the eigenvalue contribution.  Each Eigenvalue will be divided by the sum of the eigenvalues in order to determine the proportional contribution.",
        "The proportion of total variance explained by the eigenvalues from the Covariance Matrix. This yields the percent contribution of each eigenvalue.",
        "We can also visualize the proportional contribution using a scree plot.",
        "Here we can also customize how our plot looks.",
        "Alternatively we can use a correlation matrix, thus we do not have to normalize our data first. We can run all the analysis with the matrix aswell.",
        "The following code chunk produces a correlation plot called a correlation \"circle,\" or a \"circle\" plot. The concept is to plot the loadings from one PC against another. Recall that we already understand that the first 3 PC's account for 99% of the variance in the data set. So, we need only investigate these PC's. The correlation plot is a 2D plot, so you can only compare 2 PC's at a time. In the code chunk below, we compare PC1 against PC2.",
        "Factor Analysis (FA)",
        "The primary use of Factor Analysis (FA) is to better interpret the meaning behind the various PC's. While PCA and FA are similar, there are some fundamental differences, particularly in the objectives. In brief, PCA focuses on data reduction in a way that the variance from a particular data set may be explained by a set of fewer new variables we call PC's. In FA, the premise is a bit different. In FA, the goal is to uncover a \"phantom\" variable(s) that could not be directly measured.",
        "Run the next code chunk which will perform factor analysis with \"Varimax\" orthogonal rotation. Additionally, the factor scores will be calculated.",
        "Run the next code chunk. The component axes are renamed to reflect that they are now factors and rotated.  The R stands for \"rotated,\" and the L stands for \"loadings\"",
        "Note: How is this correlation plot different from the previous one made with principle components?",
        "Inverse Distance Weighting (IDW)",
        "The following chunk of code uses the interpolation algorithm, Inverse Distance Weighting (IDW). We will plot the mapped solution for each rotated factor score. Recall from above we have the position of a known ore body. Here it is circled in white.",
        "Recall that each factor score represents the elements of a \"phantom\" variable. From factor analysis, it is determined that the phantom variable RC1 represented \"Paleo-Temperature\" due to the high loadings of Mg, Fe, Na, and Sulfide.  RC2, represented \"Deformation Intensity\" due to high loading of Cleavage Spacing, Elongation, and Fold. V RC3 represented \"Porosity/Permeability\" due to high loadings of Veins and Fractures. Producing a contoured map of each of these phantom variables can help define their relationship to the known ore body. The facet image below shows the isolines from each of these variables separately along with the position of the known iron ore body. The isolines for each RC variable define the limits or extents of the ore body.Finding the intersection of these three isoline sets can help located any new potential ore body.",
        "The plot shows us the cutoffs should be approximately:",
        "RC1 =  0.0 and 0.5",
        "RC2 = -1.0 and 0.0",
        "RC3 = -0.5 and 1.0",
        "The objective now is to determine where all 3 cutoffs from the rotated component scores overlap.",
        "In the following code chunk the contours are overlain.The intent of this overlaying set of isolines is to assist you in finding a second ore body based on the PCA/FA analysis. Run this code to highlight the new body where the component scores overlap.",
        "Unfortunately those plot look fairly bad especially around our data points. Next we will use a better method.",
        "Kriging",
        "Kriging has several advantages over Inverse Distance Weighting (IDW) making it a preferable interpolation method. It effectively models spatial autocorrelation, accounting for both distance and spatial arrangement. Kriging provides the best linear unbiased prediction, thus minimizing estimation variance, and offers an estimate of prediction error, allowing for the assessment of prediction quality. Although computationally intensive and requiring model fitting, its flexibility in adapting to different spatial patterns makes it superior to IDW.",
        "First we must make a good looking variogram model.",
        "We can use these results as parameters for the klovan::kriging function. We can also use the klovan::kriging.auto function to automatically find the best variogram.",
        "Here we will apply the kriging and see a summary of the data",
        "Now we can see our old and new ore bodies where the component scores overlap",
        "Conclusion",
        "The Klovan v0.0.9 package is a robust tool for performing Principal Component Analysis (PCA) and Factor Analysis (FA) using R. These techniques enable users to simplify complex datasets and uncover underlying patterns. The utility of Klovan was demonstrated through a detailed analysis of a geological dataset, identifying valuable insights into potential ore body locations."
      ],
      "created": "2024-02-02 02:31:12",
      "modified": "2024-02-02 02:31:12",
      "commits": 1
    }
  ],
  "_score": 2.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "klovan",
  "_universes": [
    "frenchrh"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-11T08:34:36.000Z",
      "distro": "noble",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "857629fbc79bd6017e46d0a4d0887317bf6196a4ebbdd9d3997dd3b67d80d10b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-11T08:34:21.000Z",
      "distro": "noble",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "e2e9e5008686bd6425b08123a5aaed1e6bdf51c83d074b0ac324dd59858a825c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-11T08:34:50.000Z",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "bcb3255d6a47456f7096486ea4aa1fad24eb4b94117778a9238579a8dc551879",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-11T08:34:01.000Z",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "6f2ab563987bceb6511d5cf8697c871579c085701664d109988f3016ea680342",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-11T08:34:11.000Z",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "35241956507ec76a37533dbf9fec147549a3fe724eabcbf851f578edaaa8cd55",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-11T08:33:31.000Z",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "9a4d9876c2c574585ecf090ed20bbe341c42dcb26bddadcdb5cede1cb7711495",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-11T08:33:25.000Z",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "3d56804af0163063840d36127f43230ee1c4e3e1dba7be7020d677c9baaa8ccd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-22T11:37:44.000Z",
      "commit": "c4b866421ecf9b5e9d61d3db278d3565e4f0f27b",
      "fileid": "1e9768dc6bbb77092e392dc73c6099d04fc02a8b97c2d6f2d9086704e4f67056",
      "status": "success",
      "buildurl": "https://github.com/r-universe/frenchrh/actions/runs/25659010202"
    }
  ]
}