{
  "_id": "6acca7b1a14063b82c3a7709",
  "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-10-12 09:19:21 UTC",
    "User": "root"
  },
  "Author": "Bogdan Potanin [aut, cre, ctb], Sofiia Dolgikh [ctb]",
  "Maintainer": "Bogdan Potanin <bogdanpotanin@gmail.com>",
  "Config/pak/sysreqs": "cmake",
  "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/739178861f06fa5c72d797c7c0f88e88deded315afc8f607e7b044cbb562249a",
  "_filesize": 800675,
  "_sha256": "739178861f06fa5c72d797c7c0f88e88deded315afc8f607e7b044cbb562249a",
  "_expires": "2027-01-20T09:26:07.000Z",
  "_created": "2026-10-12T09:19:21.000Z",
  "_published": "2026-10-12T09:26:09.607Z",
  "_buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114744226922,
      "time": 139,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11738136789"
    },
    {
      "job": 114744226903,
      "time": 172,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11737158619"
    },
    {
      "job": 114744227080,
      "time": 133,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11737742063"
    },
    {
      "job": 114744226886,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11737398334"
    },
    {
      "job": 114744226852,
      "time": 144,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11737308502"
    },
    {
      "job": 114744227027,
      "time": 210,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11737538408"
    },
    {
      "job": 114744227001,
      "time": 100,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11737303343"
    },
    {
      "job": 114744226972,
      "time": 195,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11737872821"
    },
    {
      "job": 114742869119,
      "time": 218,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11737801660"
    },
    {
      "job": 114744226796,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11738131661"
    },
    {
      "job": 114744226987,
      "time": 262,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11737982825"
    },
    {
      "job": 114744226954,
      "time": 170,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11737528172"
    },
    {
      "job": 114744227038,
      "time": 188,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11737113773"
    },
    {
      "job": 114744226953,
      "time": 344,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11737224062"
    },
    {
      "job": 114744226975,
      "time": 170,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11737659074"
    }
  ],
  "_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": 587,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/switchSelection"
  },
  "_searchresults": 4,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/switchSelection.html"
  ],
  "_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-10-12T09:21:43.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/9fce8012f8306ae2f402a64f334effe22581a9f04ef510ba52d4513b970459e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-10-12T09:22:02.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/736350120201ebeecb952a272a4af8b843cf27475b3d1648372ca1883db56542",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-10-12T09:21:41.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/18b1e6758e7abdf277f4ae22e6183e7d5753a62ee6d9570bbe359c40d1297073",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-10-12T09:22:21.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/e12579d7489912791ba44b9c4b27fd48826781436374dd926061036c5ceb8786",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-10-12T09:21:51.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/7e37cbe6b629ff97d0f5cbcdf4ffd1263fa9c24af9b9f486fc00a3a1970ada10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-10-12T09:22:11.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/9a8fa68213b422cd682fb620f10ae5438be2368d6a6560f76321cc826df9d147",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-10-12T09:21:33.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/d62808f44195666aa88d36d92514345b4985f02206812d170eb926b5be3a409b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-10-12T09:22:01.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/2c3d74c4888e0a5affa57c40ca3e4071eff902fe5b872371da959024719840fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-10-12T09:21:41.000Z",
      "arch": "emscripten",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/4fbd1df750c6d51014a84c4c911d4e9ea7f3b57b6d54d967953c0feb8076dec5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-12T09:23:15.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/42daf13a2060b071e53fad20c17d8f10633d307ec833109a36ce0f34e48d4aaa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-12T09:20:48.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/26a552821ddefa5f661b1cd2486c7821bac7815e67dd0424c60a0043380e9ae9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-12T09:21:24.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/c00fa199f23f29c83d9abf05337d2a71cc80049887f792509031d597a4b69b39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-12T09:24:43.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/8d7d05cbb58eca6d3bca9f4f7698665319346012bbd756a0cd134474f9be6106",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-12T09:21:22.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "https://r2.ropensci.org/2a45dd6e6b008b62dfa0e6bf147fcd2ade511f2a64a39b42d210c7f259543294",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/38228757749"
    }
  ]
}