{
  "_id": "6a2e646a3efcd9bda43102e8",
  "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-06-14 08:16:48 UTC",
    "User": "root"
  },
  "Author": "Bogdan Potanin [aut, cre, ctb], Sofiia Dolgikh [ctb]",
  "Maintainer": "Bogdan Potanin <bogdanpotanin@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-04-15 17:36:12 UTC",
  "RemoteUrl": "https://github.com/cran/switchSelection",
  "RemoteRef": "HEAD",
  "RemoteSha": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
  "MD5sum": "c2271d0255693ba3525c0737434f6e99",
  "_user": "cran",
  "_type": "src",
  "_file": "switchSelection_2.1.0.tar.gz",
  "_fileid": "2125a5b9e73238e6aad8a98ebca141e8f164d59bb59b0ebad45281e63fdc3822",
  "_filesize": 799459,
  "_sha256": "2125a5b9e73238e6aad8a98ebca141e8f164d59bb59b0ebad45281e63fdc3822",
  "_created": "2026-06-14T08:16:48.000Z",
  "_published": "2026-06-14T08:20:58.834Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81261694379,
      "time": 135,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7619072197"
    },
    {
      "job": 81261694376,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7619075485"
    },
    {
      "job": 81261694366,
      "time": 185,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7619077946"
    },
    {
      "job": 81261694372,
      "time": 139,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7619072276"
    },
    {
      "job": 81261502155,
      "time": 185,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7619054145"
    },
    {
      "job": 81261694345,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7619068980"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27492932552",
  "_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",
    "description": "",
    "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": false,
  "_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": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 606,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 611,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/switchSelection"
  },
  "_searchresults": 3,
  "_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": false,
  "_nocasepkg": "switchselection",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://bogdanpotanin.r-universe.dev/switchSelection",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-14T08:19:06.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "2e4ff9ce12a21f4e4d3f49c64eb2edc62c8d6e7f59aeac17e453c2a2d1ca26bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27492932552"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-14T08:19:40.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "fcc76a02b882fd7f17647556eec8a1d0f42a000c9349f9fde59f136011b39b74",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27492932552"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-14T08:19:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "3edd36200b8ac1b6c3677e4c11fb8f5814b5045be929bd0e66ad9fb16784c3f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27492932552"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-14T08:19:05.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "15dc9d6dafe0fd031b32e512befc3e99d529eca1b13720b68016776cbef1b1e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27492932552"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-06-14T08:19:11.000Z",
      "arch": "emscripten",
      "commit": "7f9b6ee23a465388459e4398073dddc4342b8b6b",
      "fileid": "150b38754247bd1310cfc8700d34cd169bf98644ac4dd8dc69819492492c93a9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27492932552"
    }
  ]
}