{
  "_id": "6a1298f5acfb0bcc41d0d871",
  "Package": "naivereg",
  "Type": "Package",
  "Title": "Nonparametric Additive Instrumental Variable Estimator and\nRelated IV Methods",
  "Version": "1.0.5",
  "Author": "Qingliang Fan, KongYu He, Wei Zhong",
  "Maintainer": "Qingliang Fan <michaelqfan@xmu.edu.cn>",
  "Description": "In empirical studies, instrumental variable (IV)\nregression is the signature method to solve the endogeneity\nproblem. If we enforce the exogeneity condition of the IV, it\nis likely that we end up with a large set of IVs without\nknowing which ones are good. Also, one could face the model\nuncertainty for structural equation, as large micro dataset is\ncommonly available nowadays. This package uses adaptive group\nlasso and B-spline methods to select the nonparametric\ncomponents of the IV function, with the linear function being a\nspecial case (naivereg). The package also incorporates two\nstage least squares estimator (2SLS), generalized method of\nmoment (GMM), generalized empirical likelihood (GEL) methods\npost instrument selection, logistic-regression instrumental\nvariables estimator (LIVE, for dummy endogenous variable\nproblem), double-selection plus instrumental variable estimator\n(DS-IV) and double selection plus logistic regression\ninstrumental variable estimator (DS-LIVE), where the double\nselection methods are useful for high-dimensional structural\nequation models. The naivereg is nonparametric version of\n'ivregress' in 'Stata' with IV selection and high dimensional\nfeatures. The package is based on the paper by Q. Fan and W.\nZhong, \"Nonparametric Additive Instrumental Variable Estimator:\nA Group Shrinkage Estimation Perspective\" (2018), Journal of\nBusiness & Economic Statistics\n<doi:10.1080/07350015.2016.1180991> as well as a series of\nworking papers led by the same authors.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.0.2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-24 06:18:56 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2020-03-18 14:40:14 UTC",
  "RemoteUrl": "https://github.com/cran/naivereg",
  "RemoteRef": "HEAD",
  "RemoteSha": "085f18be823ee53a29b275a678d0db9db6c26904",
  "MD5sum": "0b3901ded73ebaa20ae40eb405327264",
  "_user": "cran",
  "_type": "src",
  "_file": "naivereg_1.0.5.tar.gz",
  "_fileid": "13c78e5701f5c50ea9bbb31fb522d5bc16eb3af4d80c701372bde1312e4b2424",
  "_filesize": 726279,
  "_sha256": "13c78e5701f5c50ea9bbb31fb522d5bc16eb3af4d80c701372bde1312e4b2424",
  "_created": "2026-05-24T06:18:56.000Z",
  "_published": "2026-05-24T06:21:41.201Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77576868942,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7182829051"
    },
    {
      "job": 77576868948,
      "time": 133,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7182829320"
    },
    {
      "job": 77576724571,
      "time": 167,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7182814591"
    },
    {
      "job": 77576868933,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7182826349"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26353718381",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/naivereg",
  "_commit": {
    "id": "085f18be823ee53a29b275a678d0db9db6c26904",
    "author": "Qingliang Fan <michaelqfan@xmu.edu.cn>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.5\n",
    "time": 1584542414
  },
  "_maintainer": {
    "name": "Qingliang Fan",
    "email": "michaelqfan@xmu.edu.cn"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "grpreg",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "gmm",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "ncvreg",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 245,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/naivereg"
  },
  "_searchresults": 18,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/naivereg.html",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2018-02-20"
    },
    {
      "version": "1.0.2",
      "date": "2019-11-03"
    },
    {
      "version": "1.0.4",
      "date": "2020-02-20"
    },
    {
      "version": "1.0.5",
      "date": "2020-03-18"
    }
  ],
  "_exports": [
    "DSIV",
    "DSLIVE",
    "IVselect",
    "LIVE",
    "naive.gel",
    "naive.gmm",
    "naivereg"
  ],
  "_datasets": [
    {
      "name": "DSIVdata",
      "title": "The data generating for the DSIV",
      "object": "DSIVdata",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "y",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "D"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    },
    {
      "name": "DSLIVEdata",
      "title": "The data generating for the DSLIVE",
      "object": "DSLIVEdata",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "y",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "D"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    },
    {
      "name": "LIVEdata",
      "title": "The data generating for the LIVE",
      "object": "LIVEdata",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "naivedata",
      "title": "The data generating for the naivereg",
      "object": "naivedata",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "y",
        "x",
        "z1",
        "z2",
        "z3",
        "z4",
        "z5",
        "z6",
        "z7",
        "z8",
        "z9",
        "z10",
        "z11",
        "z12",
        "z13",
        "z14",
        "z15",
        "z16",
        "z17",
        "z18",
        "z19",
        "z20"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "TradeAndGrowthData",
      "title": "Trade and growth data",
      "object": "TradeAndGrowthData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "country",
        "code",
        "y",
        "T",
        "T_hat",
        "N",
        "A",
        "water",
        "coast",
        "arable",
        "border",
        "ww",
        "rw",
        "pm25",
        "forest",
        "lang",
        "in_water",
        "in_coast",
        "in_arable",
        "in_border",
        "in_forest",
        "in_lang"
      ],
      "rows": 159,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "DSIV",
      "title": "Double-Selection Plus Instrumental Variable Estimator",
      "topics": [
        "DSIV"
      ]
    },
    {
      "page": "DSIVdata",
      "title": "The data generating for the DSIV",
      "topics": [
        "DSIVdata"
      ]
    },
    {
      "page": "DSLIVE",
      "title": "DS-LIVE",
      "topics": [
        "DSLIVE"
      ]
    },
    {
      "page": "DSLIVEdata",
      "title": "The data generating for the DSLIVE",
      "topics": [
        "DSLIVEdata"
      ]
    },
    {
      "page": "IVselect",
      "title": "Selecting instrument variables using group lasso and B-splines in naivereg",
      "topics": [
        "IVselect"
      ]
    },
    {
      "page": "LIVE",
      "title": "Logistic-regression Instrumental Variables Estimator",
      "topics": [
        "LIVE"
      ]
    },
    {
      "page": "LIVEdata",
      "title": "The data generating for the LIVE",
      "topics": [
        "LIVEdata",
        "livedata"
      ]
    },
    {
      "page": "naive.gel",
      "title": "Estimete the parameters with gel after IV selecting",
      "topics": [
        "naive.gel"
      ]
    },
    {
      "page": "naive.gmm",
      "title": "Estimete the parameters with gmm after IV selecting",
      "topics": [
        "naive.gmm"
      ]
    },
    {
      "page": "naivedata",
      "title": "The data generating for the naivereg",
      "topics": [
        "naivedata"
      ]
    },
    {
      "page": "naivereg",
      "title": "Nonparametric additive instrumental variable estimator",
      "topics": [
        "naivereg"
      ]
    },
    {
      "page": "TradeAndGrowthData",
      "title": "Trade and growth data",
      "topics": [
        "TradeAndGrowthData"
      ]
    }
  ],
  "_rundeps": [
    "codetools",
    "foreach",
    "glmnet",
    "gmm",
    "grpreg",
    "iterators",
    "lattice",
    "Matrix",
    "ncvreg",
    "Rcpp",
    "RcppEigen",
    "sandwich",
    "shape",
    "survival",
    "zoo"
  ],
  "_score": 1.255272505103306,
  "_indexed": true,
  "_nocasepkg": "naivereg",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.5",
      "date": "2026-05-24T06:20:51.000Z",
      "distro": "noble",
      "commit": "085f18be823ee53a29b275a678d0db9db6c26904",
      "fileid": "fc11b27bc18fed39a770de136a1bd9aa63cf2896303ca0e2c9653c95f3a1a3fe",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26353718381"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.5",
      "date": "2026-05-24T06:20:53.000Z",
      "distro": "noble",
      "commit": "085f18be823ee53a29b275a678d0db9db6c26904",
      "fileid": "c79cc1c6c105dc3054ffefe7fc84ed5605c82a46035f8c025b97de5bfa4be20f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26353718381"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.5",
      "date": "2026-05-24T06:21:03.000Z",
      "commit": "085f18be823ee53a29b275a678d0db9db6c26904",
      "fileid": "8e0fff55541b396bcb2fcdeaee9d7a4c933267a668223066f4b13a1aac66cb31",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26353718381"
    }
  ]
}