{
  "_id": "6ac7516ade46216d5edce4ec",
  "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-10-08 08:12:29 UTC",
    "User": "root"
  },
  "Author": "Jeffrey Zhang [aut, cre]",
  "Maintainer": "Jeffrey Zhang <jeffreyzhang1226@gmail.com>",
  "_user": "jzhang1937",
  "_type": "src",
  "_file": "doseSens_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/f33feac9c8b061f62ada8ecff3d447dab7104166aa1d72b0b531a3d119c4d130",
  "_filesize": 307461,
  "_sha256": "f33feac9c8b061f62ada8ecff3d447dab7104166aa1d72b0b531a3d119c4d130",
  "_expires": "2027-01-16T08:16:40.000Z",
  "_created": "2026-10-08T08:12:29.000Z",
  "_published": "2026-10-08T08:16:41.992Z",
  "_buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113215151741,
      "time": 109,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11537226217"
    },
    {
      "job": 113215151788,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11536374872"
    },
    {
      "job": 113215151736,
      "time": 202,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11536089091"
    },
    {
      "job": 113215151660,
      "time": 172,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11536937001"
    },
    {
      "job": 113214289337,
      "time": 138,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11537167094"
    },
    {
      "job": 113215151751,
      "time": 79,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11537310531"
    },
    {
      "job": 113215151767,
      "time": 81,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11537091447"
    },
    {
      "job": 113215151726,
      "time": 91,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11537325626"
    },
    {
      "job": 113215151807,
      "time": 83,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11536393312"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 0
  },
  "_downloads": {
    "count": 297,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/doseSens"
  },
  "_devurl": "https://github.com/jzhang1937/dosesens",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/doseSens.html",
    "extra/manual.pdf",
    "LICENSE"
  ],
  "_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-10-08T08:14:19.000Z",
      "distro": "resolute",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/134ea9036ccac7a7ca7829aa5645bd767d59e6a1ac97cf0dd2922ee22100d8c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-08T08:14:20.000Z",
      "distro": "resolute",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/7672e3f7a75689cf8a7435a654e43c30831c5d6b1031286613fbfa8b1bef4107",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T08:15:15.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/ed0698ecc094e0d113164582a0b1023ac0786448db9ce1017f5f706267c7333b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T08:14:46.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/2f06178f457f6f64bfffb4bbf1d85fc9b2d14e088ddd024ee6521701b4989dbc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-08T08:14:06.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/c7333b86be106f3bf79d76ac96300c9fa0929ccb18718abeb2d8305c81b4c8e7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T08:13:35.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/22156091977e8c09941321c24c276879db027b52bf2da8d0cf82966a99bc03a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T08:13:46.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/e0718643a277741d9f762894136070c0aaa7ca6b37de67258273a688fc41ab08",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T08:13:39.000Z",
      "commit": "5fb6dea1a5f6cc997fc80fca518de0a1370535d5",
      "fileid": "https://r2.ropensci.org/82c8f3b3ea2c51a00f1015182781dbbeefe99f49202e615251ca9d4566634a6d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jzhang1937/actions/runs/37747975394"
    }
  ]
}