{
  "_id": "6a55dbe4ff0138dec5d69dbe",
  "Package": "switchSelection",
  "Type": "Package",
  "Title": "Endogenous Switching and Sample Selection Regression Models",
  "Version": "2.1.0",
  "Date": "2026-04-15",
  "Authors@R": "c(person(\"Bogdan\", \"Potanin\", email = \"bogdanpotanin@gmail.com\", role = c(\"aut\", \"cre\", \"ctb\")), person(\"Sofiia\", \"Dolgikh\", email = \"sidolgikh@gmail.com\", role = c(\"ctb\")))",
  "Description": "Estimate the parameters of multivariate endogenous\nswitching and sample selection models using methods described\nin Newey (2009) <doi:10.1111/j.1368-423X.2008.00263.x>, E.\nKossova, B. Potanin (2018)\n<https://ideas.repec.org/a/ris/apltrx/0346.html>, E. Kossova,\nL. Kupriianova, B. Potanin (2020)\n<https://ideas.repec.org/a/ris/apltrx/0391.html> and E.\nKossova, B. Potanin (2022)\n<https://ideas.repec.org/a/ris/apltrx/0455.html>.",
  "License": "GPL (>= 2)",
  "RoxygenNote": "7.3.2",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-14 06:43:00 UTC",
    "User": "root"
  },
  "Author": "Bogdan Potanin [aut, cre, ctb], Sofiia Dolgikh [ctb]",
  "Maintainer": "Bogdan Potanin <bogdanpotanin@gmail.com>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://bogdanpotanin.r-universe.dev",
  "Date/Publication": "2026-04-15 17:36:12 UTC",
  "RemoteUrl": "https://github.com/cran/switchSelection",
  "RemoteRef": "HEAD",
  "RemoteSha": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
  "_user": "bogdanpotanin",
  "_type": "src",
  "_file": "switchSelection_2.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/13c1d0832aa4bd2186c30c5b1bd988ef46040bd0d07419babacf5497a87dd9e0",
  "_filesize": 799476,
  "_sha256": "13c1d0832aa4bd2186c30c5b1bd988ef46040bd0d07419babacf5497a87dd9e0",
  "_expires": "2026-10-22T06:49:06.000Z",
  "_created": "2026-07-14T06:43:00.000Z",
  "_published": "2026-07-14T06:49:07.923Z",
  "_jobs": [
    {
      "job": 87018313039,
      "time": 167,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8302554133"
    },
    {
      "job": 87018312998,
      "time": 152,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8302547507"
    },
    {
      "job": 87018313044,
      "time": 185,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8302560346"
    },
    {
      "job": 87018313019,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8302546458"
    },
    {
      "job": 87018312990,
      "time": 142,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8302538214"
    },
    {
      "job": 87018313027,
      "time": 300,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8302588238"
    },
    {
      "job": 87018313020,
      "time": 130,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8302534658"
    },
    {
      "job": 87018313014,
      "time": 266,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8302577678"
    },
    {
      "job": 87017720517,
      "time": 219,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8302496861"
    },
    {
      "job": 87018312967,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8302542751"
    },
    {
      "job": 87018312986,
      "time": 143,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8302544770"
    },
    {
      "job": 87018313010,
      "time": 129,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8302540153"
    },
    {
      "job": 87018313005,
      "time": 141,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8302543967"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572",
  "_status": "success",
  "_upstream": "https://github.com/cran/switchSelection",
  "_commit": {
    "id": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
    "author": "Bogdan Potanin <bogdanpotanin@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.1.0\n",
    "time": 1776274572
  },
  "_maintainer": {
    "name": "Bogdan Potanin",
    "email": "bogdanpotanin@gmail.com",
    "login": "bogdanpotanin",
    "description": "",
    "uuid": 25222744
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "hpa",
      "role": "LinkingTo"
    },
    {
      "package": "mnorm",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.1.1",
      "role": "Imports"
    },
    {
      "package": "hpa",
      "version": ">= 1.3.4",
      "role": "Imports"
    },
    {
      "package": "mnorm",
      "version": ">= 1.2.3",
      "role": "Imports"
    },
    {
      "package": "gena",
      "version": ">= 1.0.1",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.4",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-16",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "2.1.0",
      "date": "2026-04-15"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "bogdanpotanin",
      "count": 7,
      "uuid": 25222744
    }
  ],
  "_userbio": {
    "uuid": 25222744,
    "type": "user",
    "name": "bogdanpotanin",
    "followers": 5
  },
  "_downloads": {
    "count": 465,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/switchSelection"
  },
  "_searchresults": 3,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/switchSelection.html",
    "manual.pdf"
  ],
  "_realowner": "bogdanpotanin",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-05-03"
    },
    {
      "version": "1.0.1",
      "date": "2023-05-08"
    },
    {
      "version": "1.1.0",
      "date": "2023-08-07"
    },
    {
      "version": "1.1.1",
      "date": "2023-08-11"
    },
    {
      "version": "1.1.2",
      "date": "2023-08-24"
    },
    {
      "version": "2.0.0",
      "date": "2024-09-26"
    },
    {
      "version": "2.1.0",
      "date": "2026-04-15"
    }
  ],
  "_exports": [
    "boot",
    "bootstrap_combine_msel",
    "bootstrap_msel",
    "formula_merge",
    "formula_split",
    "loocv",
    "lrtest_msel",
    "msel",
    "starsVector",
    "struct_msel",
    "test_msel",
    "update_msel",
    "vcov.msel"
  ],
  "_datasets": [
    {
      "name": "cps",
      "title": "A subset of data from Current Population Survey (CPS).",
      "object": "cps",
      "file": "cps.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "work",
        "swork",
        "wage",
        "swage",
        "hours",
        "shours",
        "weeks",
        "sweeks",
        "lwage",
        "slwage",
        "basic",
        "sbasic",
        "bachelor",
        "sbachelor",
        "master",
        "smaster",
        "nchild",
        "snchild",
        "health",
        "shealth",
        "age",
        "sage",
        "state",
        "educ",
        "seduc"
      ],
      "rows": 18253,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "boot",
      "title": "Bootstrap covariance matrix for least squares estimates of linear regression",
      "topics": [
        "boot"
      ]
    },
    {
      "page": "bootstrap",
      "title": "Bootstrap for msel function",
      "topics": [
        "bootstrap",
        "bootstrap_combine_msel",
        "bootstrap_msel"
      ]
    },
    {
      "page": "coef.msel",
      "title": "Coefficients extraction method for msel.",
      "topics": [
        "coef.msel"
      ]
    },
    {
      "page": "cps",
      "title": "A subset of data from Current Population Survey (CPS).",
      "topics": [
        "cps"
      ]
    },
    {
      "page": "exogenous_fn",
      "title": "Modify exogenous variables in data frame",
      "topics": [
        "exogenous_fn"
      ]
    },
    {
      "page": "fitted.msel",
      "title": "Extract Model Fitted Values",
      "topics": [
        "fitted.msel"
      ]
    },
    {
      "page": "formula_merge",
      "title": "Merge formulas",
      "topics": [
        "formula_merge"
      ]
    },
    {
      "page": "formula_split",
      "title": "Split formula by symbol",
      "topics": [
        "formula_split"
      ]
    },
    {
      "page": "formula.msel",
      "title": "Formulas of msel model.",
      "topics": [
        "formula.msel"
      ]
    },
    {
      "page": "grad_msel",
      "title": "Gradient of the Log-likelihood Function of Multivariate Ordered Probit Model",
      "topics": [
        "grad_msel"
      ]
    },
    {
      "page": "lnL_msel",
      "title": "Log-likelihood Function of Multivariate Ordered Probit Model",
      "topics": [
        "lnL_msel"
      ]
    },
    {
      "page": "logLik.msel",
      "title": "Extract Log-Likelihood from a Fit of the msel Function.",
      "topics": [
        "logLik.msel"
      ]
    },
    {
      "page": "loocv",
      "title": "Leave-one-out cross-validation",
      "topics": [
        "loocv"
      ]
    },
    {
      "page": "lrtest_msel",
      "title": "Likelihood ratio test",
      "topics": [
        "lrtest_msel"
      ]
    },
    {
      "page": "msel",
      "title": "Multivariate and multinomial sample selection and endogenous switching models with multiple outcomes.",
      "topics": [
        "msel"
      ]
    },
    {
      "page": "nobs.msel",
      "title": "Extract the Number of Observations from a Fit of the msel Function.",
      "topics": [
        "nobs.msel"
      ]
    },
    {
      "page": "predict.msel",
      "title": "Predict method for msel function",
      "topics": [
        "predict.msel"
      ]
    },
    {
      "page": "print.lrtest_msel",
      "title": "Print Method for Likelihood Ratio Test",
      "topics": [
        "print.lrtest_msel"
      ]
    },
    {
      "page": "print.msel",
      "title": "Print for an Object of Class msel",
      "topics": [
        "print.msel"
      ]
    },
    {
      "page": "print.struct_msel",
      "title": "Print for an Object of Class struct_msel",
      "topics": [
        "print.struct_msel"
      ]
    },
    {
      "page": "print.summary.lrtest_msel",
      "title": "Print Summary Method for Likelihood Ratio Test",
      "topics": [
        "print.summary.lrtest_msel"
      ]
    },
    {
      "page": "print.summary.msel",
      "title": "Print summary for an Object of Class msel",
      "topics": [
        "print.summary.msel"
      ]
    },
    {
      "page": "print.summary.test_msel",
      "title": "Print summary for an Object of Class test_msel",
      "topics": [
        "print.summary.test_msel"
      ]
    },
    {
      "page": "sigma.msel",
      "title": "Extract Residual Standard Deviation 'Sigma'",
      "topics": [
        "sigma.msel"
      ]
    },
    {
      "page": "starsVector",
      "title": "Stars for p-values",
      "topics": [
        "starsVector"
      ]
    },
    {
      "page": "struct_msel",
      "title": "Structure of the Object of Class msel",
      "topics": [
        "struct_msel"
      ]
    },
    {
      "page": "summary.lrtest_msel",
      "title": "Summary Method for Likelihood Ratio Test",
      "topics": [
        "summary.lrtest_msel"
      ]
    },
    {
      "page": "summary.msel",
      "title": "Summary for an Object of Class msel",
      "topics": [
        "summary.msel"
      ]
    },
    {
      "page": "summary.test_msel",
      "title": "Summary for an Object of Class delta_method",
      "topics": [
        "summary.test_msel"
      ]
    },
    {
      "page": "test_msel",
      "title": "Tests and confidence intervals for the parameters estimated by the msel function",
      "topics": [
        "test_msel"
      ]
    },
    {
      "page": "update_msel",
      "title": "Update msel object with the new estimates",
      "topics": [
        "update_msel"
      ]
    },
    {
      "page": "vcov_combine",
      "title": "Combine the asymptotic covariance matrices",
      "topics": [
        "vcov_combine"
      ]
    },
    {
      "page": "vcov.msel",
      "title": "Calculate Variance-Covariance Matrix for a msel Object.",
      "topics": [
        "vcov.msel"
      ]
    }
  ],
  "_rundeps": [
    "cli",
    "dplyr",
    "gena",
    "generics",
    "glue",
    "hpa",
    "lifecycle",
    "magrittr",
    "mnorm",
    "pillar",
    "pkgconfig",
    "R6",
    "Rcpp",
    "RcppArmadillo",
    "RcppParallel",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "switchselection",
  "_universes": [
    "bogdanpotanin"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-07-14T06:45:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/82177a2d5773bfda8b2708aa6930bca3a3d1136e3fa3e70814751ceb05fea99c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-07-14T06:45:39.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/7e85afd25fdd199b50018b21e4aa90f0b499bc746ece8c62f1d256a84bc8aff4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-07-14T06:46:11.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/bd4727e7ed74b2928e0a345775c4ed64f1521cbf38815187563a211bad42fa39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-07-14T06:45:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/41af9ba04a19e5a4fc78b2bfcb6381c255201273bf2c331fb06105369931905b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-07-14T06:45:19.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/f0aa88ccca3af82d75f030099c6b716f155d89dd008de11d98bc1ac041810f75",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-07-14T06:47:09.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/def846d46418f7bd80445a5e73fae1bac672903f8910fbd911947cd0d332cba5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-07-14T06:45:08.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/deeeaca2a1b98b5608b81c06e2e86a5368d2a8582601354175a61c52b421443e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-07-14T06:46:35.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/a3ff5734c132a339a62f1bae8495023ead3259321cd6793b0742ab489013ad10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-07-14T06:45:49.000Z",
      "arch": "emscripten",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/16b30dda4fb7482d97489538f8e37b63c8d2a42c4ca8792fd1a22101eee04730",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-07-14T06:44:35.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/9ae313ef6995b73bf2fe2a656c3947e1fe274f6132cfe69d03a148ab2ff4e413",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-07-14T06:44:35.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/cd8a18e3546b9975a3935dfd3ff4450f7618334df36445a7b1ae36ff82a836ac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-07-14T06:44:34.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/43e6c8691157d36546aa33e84cc635502715fde546f46cfd68c93a226b4c7f0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/29312032572"
    }
  ]
}