{
  "_id": "6a1f2fa5b401979e73427570",
  "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-05-15 09:05:42 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",
  "MD5sum": "9eebd1f80afa1a13e619343b47958973",
  "_user": "bogdanpotanin",
  "_type": "src",
  "_file": "switchSelection_2.1.0.tar.gz",
  "_fileid": "dd336ba9bdad541be382d106f2d7e03120992dbb560205e6dc968f38c65c23c3",
  "_filesize": 798967,
  "_sha256": "dd336ba9bdad541be382d106f2d7e03120992dbb560205e6dc968f38c65c23c3",
  "_created": "2026-05-15T09:05:42.000Z",
  "_published": "2026-06-02T19:31:49.767Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79155136695,
      "time": 170,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7013721596"
    },
    {
      "job": 79155136646,
      "time": 153,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7013718102"
    },
    {
      "job": 79155137177,
      "time": 152,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013716624"
    },
    {
      "job": 79155136611,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013715334"
    },
    {
      "job": 79155137244,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7013703205"
    },
    {
      "job": 79155137259,
      "time": 266,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7013749590"
    },
    {
      "job": 79155136741,
      "time": 132,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013710582"
    },
    {
      "job": 79155136563,
      "time": 196,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013728905"
    },
    {
      "job": 79155136287,
      "time": 243,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013672393"
    },
    {
      "job": 79155136006,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367827195"
    },
    {
      "job": 79155137002,
      "time": 176,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7013722779"
    },
    {
      "job": 79155137068,
      "time": 136,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7013711648"
    },
    {
      "job": 79155136727,
      "time": 145,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013713832"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 25222744
  },
  "_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"
  },
  "_downloads": {
    "count": 526,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/switchSelection"
  },
  "_searchresults": 1,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_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.26+ds-1ubuntu0.1",
      "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.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "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-05-15T09:08:27.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "962fedb3ed062a2ed147121bc76a8cc1bc78ec5be7c88aea67d2d9eca6840af9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-15T09:08:13.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "d3479eb03af48ca7f979e4df497913316a71f5e81e9954646abdd095af675098",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-15T09:08:11.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "609c2ec516cf485b218a90a7f6261fea2da599eac35a07c19b9571fca1afdb86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-15T09:08:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "c85a5714b32c12b179c6d1c0dffe240dc6200682948a878884d6e2c28a9b8778",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-15T09:07:37.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "1fc03662c8fa3a1837db108d693d8491910cee106ac21a8aa674f6c3becf0662",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-15T09:09:23.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "afbd195075166ffb302fd88307f5e0743d0cf7de90f7d6d5badc3563ec89ba3b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-15T09:07:58.000Z",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "a6b359408ab63fc4bb556e4a57f9e08f771ddea8bb8687de5a703079dc1632fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-15T09:08:26.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "d0792c363a9a91ec2659a8022fa49a3f28ea2b2779ea98433aeddbc60e49cf10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-15T09:07:39.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "d57409169146f20a9c7737bdb67d99e56a1e5422367a4ffa3909dd34f1eaf075",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-15T09:07:18.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "f64cb0aeb65919df594310075d2a2ed27aeec13002f626e3324b8f6f0d4f7952",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-15T09:07:19.000Z",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "64849f6515e32898c15b673b01c94f690ce6f9b60808ba91bb041e7125f50f92",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-06-02T19:31:05.000Z",
      "arch": "emscripten",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "3a1554388fa752a5fba2164287e2eb85a5e9fc9b8dee60a63b6231717918b8e8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bogdanpotanin/actions/runs/25909517220"
    }
  ]
}