{
  "_id": "6a290105732311cd8759098c",
  "Package": "doseSens",
  "Title": "Conduct Sensitivity Analysis with Continuous Exposures and\nBinary or Continuous Outcomes",
  "Version": "1.0.0",
  "Authors@R": "person(\"Jeffrey\", \"Zhang\", email = \"jeffreyzhang1226@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Performs sensitivity analysis for the sharp null,\nattributable effects, and weak nulls in matched studies with\ncontinuous exposures and binary or continuous outcomes as\ndescribed in Zhang, Small, Heng (2024)\n<doi:10.48550/arXiv.2401.06909> and Zhang, Heng (2024)\n<doi:10.48550/arXiv.2409.12848>. Two of the functions require\ninstallation of the 'Gurobi' optimizer. Please see\n<https://docs.gurobi.com/current/#refman/ins_the_r_package.html>\nfor guidance.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.1",
  "LazyData": "true",
  "Config/pak/sysreqs": "cmake",
  "Repository": "https://jzhang1937.r-universe.dev",
  "Date/Publication": "2025-10-11 19:42:31 UTC",
  "RemoteUrl": "https://github.com/jzhang1937/dosesens",
  "RemoteRef": "HEAD",
  "RemoteSha": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-10 06:09:41 UTC",
    "User": "root"
  },
  "Author": "Jeffrey Zhang [aut, cre]",
  "Maintainer": "Jeffrey Zhang <jeffreyzhang1226@gmail.com>",
  "MD5sum": "cd598913a29ec8c88059b367c2bf784f",
  "_user": "jzhang1937",
  "_type": "src",
  "_file": "doseSens_1.0.0.tar.gz",
  "_fileid": "904a0e37348e9e79969bc53575aa8cce937f2fd35d547eea84d5283402de1d67",
  "_filesize": 309085,
  "_sha256": "904a0e37348e9e79969bc53575aa8cce937f2fd35d547eea84d5283402de1d67",
  "_created": "2026-06-10T06:09:41.000Z",
  "_published": "2026-06-10T06:15:33.456Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80493276517,
      "time": 138,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7527878634"
    },
    {
      "job": 80493276493,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7527880389"
    },
    {
      "job": 80493276511,
      "time": 196,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7527898528"
    },
    {
      "job": 80493276524,
      "time": 167,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7527910718"
    },
    {
      "job": 80492922683,
      "time": 170,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7527844537"
    },
    {
      "job": 80493276494,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7527875602"
    },
    {
      "job": 80493276509,
      "time": 120,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7527874998"
    },
    {
      "job": 80493276549,
      "time": 87,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7527866432"
    },
    {
      "job": 80493276508,
      "time": 87,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7527866350"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jzhang1937/dosesens",
  "_commit": {
    "id": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
    "author": "jeff <jzhang17@wharton.upenn.edu>",
    "committer": "jeff <jzhang17@wharton.upenn.edu>",
    "message": "align with CRAN\n",
    "time": 1760211751
  },
  "_maintainer": {
    "name": "Jeffrey Zhang",
    "email": "jeffreyzhang1226@gmail.com",
    "login": "jzhang1937",
    "description": "",
    "uuid": 89609625
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "gtools",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "role": "Imports"
    },
    {
      "package": "lpSolve",
      "role": "Imports"
    },
    {
      "package": "gurobi",
      "role": "Suggests"
    }
  ],
  "_owner": "jzhang1937",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-41",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jzhang1937",
      "count": 7,
      "uuid": 89609625
    }
  ],
  "_userbio": {
    "uuid": 89609625,
    "type": "user",
    "name": "jzhang1937"
  },
  "_downloads": {
    "count": 143,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/doseSens"
  },
  "_devurl": "https://github.com/jzhang1937/dosesens",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/doseSens.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jzhang1937/dosesens",
  "_realowner": "jzhang1937",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-01-17"
    },
    {
      "version": "1.0.0",
      "date": "2025-10-10"
    }
  ],
  "_exports": [
    "apply_permutation_to_matrix",
    "binary_thresh_attribute",
    "constant_effects_test",
    "dev_TV",
    "dose_attributable_general",
    "dose_sensitivity_mc_gen",
    "dose_thresh_attributable_one_sided",
    "extract_above_threshold_vs_baseline",
    "extract_below_threshold_vs_baseline",
    "extract_max_vs_baseline",
    "extract_min_vs_baseline",
    "extract_OLS",
    "extract_stochastic_intervention",
    "extract_threshold_effect",
    "extract_threshold_effect_function",
    "max_expectation",
    "max_ratio",
    "max_ratio_new",
    "max_ratios_summary",
    "normal_test_gen",
    "prob_bounds",
    "sharp_double_statistic",
    "sharp_null_double_test",
    "var_est",
    "weak_null_test"
  ],
  "_datasets": [
    {
      "name": "lead_bmd",
      "title": "Matched lead bone mineral density dataset",
      "object": "lead_bmd",
      "class": [
        "data.frame"
      ],
      "fields": [
        "weight",
        "height",
        "age",
        "family_income_poverty_ratio",
        "smoking_100",
        "moderate_rec",
        "albumin_g_L",
        "blood_urea_nitrogen_mg_dL",
        "uric_acid_mg_dL",
        "phosphorus_mg_dL",
        "calcium_mg_dL",
        "weight_missing",
        "height_missing",
        "family_income_poverty_ratio_missing",
        "albumin_g_L_missing",
        "blood_urea_nitrogen_mg_dL_missing",
        "uric_acid_mg_dL_missing",
        "phosphorus_mg_dL_missing",
        "calcium_mg_dL_missing",
        "matched_sets",
        "lumbar_spine_bmd",
        "log_lead",
        "race"
      ],
      "rows": 1436,
      "table": true,
      "tojson": true
    },
    {
      "name": "lead_crime",
      "title": "Matched lead crime dataset",
      "object": "lead_crime",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "age_months_continuous",
        "BLL_test_year",
        "gender",
        "year_of_construction",
        "log_home_value_testyr",
        "blood_draw_type",
        "birth_year",
        "pct_black_BLL",
        "log_med_inc_BLL",
        "season_2",
        "season_3",
        "season_4",
        "black",
        "matched_sets",
        "log_lead",
        "complain",
        "serious"
      ],
      "rows": 4134,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "apply_permutation_to_matrix",
      "title": "A function that returns a permuted vector according to a matrix and permutation vector.",
      "topics": [
        "apply_permutation_to_matrix"
      ]
    },
    {
      "page": "binary_thresh_attribute",
      "title": "Separable algorithm for threshold attributable effect in a sensitivity analysis with at most one over-exposed unit in each matched set. For a greater than alternative, finds the 'a' matched sets that most decrease the mean and/or variance.",
      "topics": [
        "binary_thresh_attribute"
      ]
    },
    {
      "page": "change_Delta",
      "title": "A helper that takes a gurobi model object outputted from dose_attributable_general or dose_thresh_attributable_one_sided and changes the Delta parameter. Saves computation time by directly editing the constraint involving Delta without having to reinitialize the other constraints that are kept the same. Outputs a list analogous to output from dose_attributable_general or dose_thresh_attributable_one_sided.",
      "topics": [
        "change_Delta"
      ]
    },
    {
      "page": "constant_effects_test",
      "title": "Asymptotic sensitivity analysis for weak nulls with continuous exposures assuming constant effects across matched sets.",
      "topics": [
        "constant_effects_test"
      ]
    },
    {
      "page": "dev_TV",
      "title": "Computes deviation from uniform distribution in total variation distance for a given amount of unmeasured confounding and a greater than alternative with a binary outcome.",
      "topics": [
        "dev_TV"
      ]
    },
    {
      "page": "dose_attributable_general",
      "title": "Inference for general attributable effects in sensitivity analysis with continuous exposures and binary outcomes. Gurobi must be installed to use this function.",
      "topics": [
        "dose_attributable_general"
      ]
    },
    {
      "page": "dose_sensitivity_mc_gen",
      "title": "Sharp null monte-carlo sensitivity analysis for continuous exposures and binary outcomes.",
      "topics": [
        "dose_sensitivity_mc_gen"
      ]
    },
    {
      "page": "dose_thresh_attributable_one_sided",
      "title": "Inference for threshold attributable effects in sensitivity analysis with continuous exposures and binary outcomes. Gurobi must be installed to use this function.",
      "topics": [
        "dose_thresh_attributable_one_sided"
      ]
    },
    {
      "page": "extract_above_threshold_vs_baseline",
      "title": "Compute average of outcomes above dose threshold minus average of outcomes.",
      "topics": [
        "extract_above_threshold_vs_baseline"
      ]
    },
    {
      "page": "extract_below_threshold_vs_baseline",
      "title": "Compute average of outcomes below dose threshold minus average of outcomes.",
      "topics": [
        "extract_below_threshold_vs_baseline"
      ]
    },
    {
      "page": "extract_max_vs_baseline",
      "title": "Compute largest dose outcome minus average of other outcomes.",
      "topics": [
        "extract_max_vs_baseline"
      ]
    },
    {
      "page": "extract_min_vs_baseline",
      "title": "Compute smallest dose outcome minus average of other outcomes.",
      "topics": [
        "extract_min_vs_baseline"
      ]
    },
    {
      "page": "extract_OLS",
      "title": "A function that returns the coefficient from regressing an outcome vector on a dose vector.",
      "topics": [
        "extract_OLS"
      ]
    },
    {
      "page": "extract_stochastic_intervention",
      "title": "Compute weighted sum of outcomes.",
      "topics": [
        "extract_stochastic_intervention"
      ]
    },
    {
      "page": "extract_threshold_effect",
      "title": "Compute difference in average outcomes above and below a dose threshold.",
      "topics": [
        "extract_threshold_effect"
      ]
    },
    {
      "page": "extract_threshold_effect_function",
      "title": "Function factory for extract_threshold_effect.",
      "topics": [
        "extract_threshold_effect_function"
      ]
    },
    {
      "page": "lead_bmd",
      "title": "Matched lead bone mineral density dataset",
      "topics": [
        "lead_bmd"
      ]
    },
    {
      "page": "lead_crime",
      "title": "Matched lead crime dataset",
      "topics": [
        "lead_crime"
      ]
    },
    {
      "page": "max_expectation",
      "title": "A function to compute a conservative upper bound on the worst-case expectation under the sharp null",
      "topics": [
        "max_expectation"
      ]
    },
    {
      "page": "max_ratio",
      "title": "Find the max ratio of probabilities between two permutations.",
      "topics": [
        "max_ratio"
      ]
    },
    {
      "page": "max_ratio_new",
      "title": "Find the max ratio of probabilities between two permutations.",
      "topics": [
        "max_ratio_new"
      ]
    },
    {
      "page": "max_ratios_summary",
      "title": "Find the max ratio of probabilities between two permutations for each matched set.",
      "topics": [
        "max_ratios_summary"
      ]
    },
    {
      "page": "normal_test_gen",
      "title": "Sharp null sensitivity analysis for continuous exposures and binary outcomes using normal approximation.",
      "topics": [
        "normal_test_gen"
      ]
    },
    {
      "page": "prob_bounds",
      "title": "A function to find the maximum and minimum probability of a permutation.",
      "topics": [
        "prob_bounds"
      ]
    },
    {
      "page": "sharp_double_statistic",
      "title": "Statistic based on inner product between transformations of dose and outcome.",
      "topics": [
        "sharp_double_statistic"
      ]
    },
    {
      "page": "sharp_null_double_test",
      "title": "Asymptotic sharp null sensitivity analysis for a class of test statistics accommodating continuous exposures and any scalar outcome.",
      "topics": [
        "sharp_null_double_test"
      ]
    },
    {
      "page": "var_est",
      "title": "A function for variance estimation",
      "topics": [
        "var_est"
      ]
    },
    {
      "page": "weak_null_test",
      "title": "Asymptotic sensitivity analysis for weak nulls with continuous exposures.",
      "topics": [
        "weak_null_test"
      ]
    }
  ],
  "_rundeps": [
    "cli",
    "dplyr",
    "generics",
    "glue",
    "gtools",
    "lifecycle",
    "lpSolve",
    "magrittr",
    "nloptr",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "dosesens",
  "_universes": [
    "jzhang1937"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-10T06:11:59.000Z",
      "distro": "noble",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "5ad5d66cb13156ffbf70e582768d339ada54eb5d4d27a3fb65e58e384dc3efe0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-10T06:12:05.000Z",
      "distro": "noble",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "c54c2cd2bae97e5ae76672e0b06760a3e2d5663ac16611c9aee4159295765f84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-06-10T06:13:16.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "940b24a18bf03fe0a39faf0ab5cdcc663eb5b5ba4f87dc195f90fc6a729cef1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-06-10T06:14:11.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "a16c9d64989150e170283e5454f3b10ca1c6b688297112a0d1813b5d3dc89fd0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-10T06:12:07.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "12cbfb5925998a53daade54cabcde98026cc39aadf61ddd9de41a930eed13304",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-10T06:11:30.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "f9793cb371e08744d42412336e1c8cf621df6cbd72437b86f30ed58ec30bb1be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-10T06:10:58.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "ee881d684f5c81c6f09b00fa2e5933c1c07a183813fbcaae65f2874d0afed267",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-10T06:11:05.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "b6d23c59761bdce067dd696647faabc1e0a2707810bd25660af376f7a3d6c63a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/27256829341"
    }
  ]
}