{
  "_id": "6a212a4fcd65a98ecbd228ee",
  "Package": "preference",
  "Type": "Package",
  "Title": "2-Stage Preference Trial Design and Analysis",
  "Version": "1.1.5",
  "Authors@R": "c(\nperson(given=\"Briana\",\nfamily=\"Cameron\",\nemail=\"briana.cameron@yale.edu\",\nrole=c(\"aut\", \"cph\")),\nperson(given=\"Denise\",\nfamily=\"Esserman\",\nemail=\"denise.esserman@yale.edu\", role=\"ctb\"),\nperson(given=\"Michael\",\nfamily=\"Kane\",\nemail=\"michael.kane@yale.edu\",\nrole=c(\"cre\", \"ctb\"),\ncomment = c(ORCID = \"http://orcid.org/0000-0003-1899-6662\")))",
  "URL": "https://github.com/kaneplusplus/preference",
  "BugReports": "https://github.com/kaneplusplus/preference/issues",
  "Description": "Design and analyze two-stage randomized trials with a\ncontinuous outcome measure. The package contains functions to\ncompute the required sample size needed to detect a given\npreference, treatment, and selection effect; alternatively, the\npackage contains functions that can report the study power\ngiven a fixed sample size. Finally, analysis functions are\nprovided to test each effect using either summary data (i.e.\nmeans, variances) or raw study data.\n<doi:10.18637/jss.v094.c02> <doi:10.1002/sim.7830>",
  "License": "LGPL-2",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.1.1",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://kaneplusplus.r-universe.dev",
  "Date/Publication": "2020-09-08 18:35:02 UTC",
  "RemoteUrl": "https://github.com/kaneplusplus/preference",
  "RemoteRef": "HEAD",
  "RemoteSha": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 07:28:02 UTC",
    "User": "root"
  },
  "Author": "Briana Cameron [aut, cph],\nDenise Esserman [ctb],\nMichael Kane [cre, ctb] (ORCID:\n<https://orcid.org/0000-0003-1899-6662>)",
  "Maintainer": "Michael Kane <michael.kane@yale.edu>",
  "MD5sum": "2c997fac7ddbcafe44ac3957984a040d",
  "_user": "kaneplusplus",
  "_type": "src",
  "_file": "preference_1.1.5.tar.gz",
  "_fileid": "a81bd10f8f64234d34820acea29714f61b81eac352b3435ad8f1ebcbb184ae66",
  "_filesize": 180689,
  "_sha256": "a81bd10f8f64234d34820acea29714f61b81eac352b3435ad8f1ebcbb184ae66",
  "_created": "2026-06-04T07:28:02.000Z",
  "_published": "2026-06-04T07:33:35.040Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79470454855,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7405526365"
    },
    {
      "job": 79470454831,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405519919"
    },
    {
      "job": 79470454843,
      "time": 194,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7405565188"
    },
    {
      "job": 79470454828,
      "time": 168,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405551389"
    },
    {
      "job": 79470050476,
      "time": 170,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405486958"
    },
    {
      "job": 79470454802,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405515688"
    },
    {
      "job": 79470454894,
      "time": 83,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7405511548"
    },
    {
      "job": 79470454871,
      "time": 86,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7405512184"
    },
    {
      "job": 79470454825,
      "time": 87,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405512354"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/kaneplusplus/preference",
  "_commit": {
    "id": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
    "author": "kaneplusplus <kaneplusplus@gmail.com>",
    "committer": "kaneplusplus <kaneplusplus@gmail.com>",
    "message": "Links updated.\n",
    "time": 1599590102
  },
  "_maintainer": {
    "name": "Michael Kane",
    "email": "michael.kane@yale.edu",
    "login": "kaneplusplus",
    "orcid": "0000-0003-1899-6662",
    "description": "",
    "uuid": 175135
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "kaneplusplus",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "clinical-trial-design",
    "clinical-trials",
    "preference-design"
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "kaneplusplus",
      "count": 143,
      "uuid": 175135
    },
    {
      "user": "bricameron",
      "count": 3,
      "uuid": 22203510
    }
  ],
  "_userbio": {
    "uuid": 175135,
    "type": "user",
    "name": "Michael Kane"
  },
  "_downloads": {
    "count": 183,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/preference"
  },
  "_devurl": "https://github.com/kaneplusplus/preference",
  "_searchresults": 11,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/preference.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kaneplusplus/preference",
  "_realowner": "kaneplusplus",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2017-06-16"
    },
    {
      "version": "0.1.2",
      "date": "2017-11-28"
    },
    {
      "version": "0.2.2",
      "date": "2018-05-08"
    },
    {
      "version": "1.0.2",
      "date": "2018-11-29"
    },
    {
      "version": "1.1.3",
      "date": "2020-06-19"
    },
    {
      "version": "1.1.6",
      "date": "2020-09-09"
    }
  ],
  "_exports": [
    "effect_size",
    "effects_from_means",
    "fit_preference",
    "fit_preference_summary",
    "optimal_proportion",
    "overall_power_binom",
    "overall_sample_size_bin",
    "overall_sample_size_pois",
    "power",
    "preference",
    "preference.trial",
    "proportion",
    "pt_from_power",
    "pt_from_ss",
    "pwr_overall_pois",
    "sample_size",
    "sigma2",
    "significance",
    "treatment_effect_size"
  ],
  "_datasets": [
    {
      "name": "imap",
      "title": "Data from the IMAP study",
      "object": "imap",
      "class": [
        "data.frame"
      ],
      "fields": [
        "outcome",
        "treatment",
        "arm",
        "strata"
      ],
      "rows": 208,
      "table": true,
      "tojson": true
    },
    {
      "name": "imap_stratified_summary",
      "title": "Data from the IMAP study",
      "object": "imap_stratified_summary",
      "class": [
        "data.frame"
      ],
      "fields": [
        "mean",
        "sd",
        "n",
        "treatment",
        "arm",
        "strata"
      ],
      "rows": 8,
      "table": true,
      "tojson": true
    },
    {
      "name": "imap_summary",
      "title": "Data from the IMAP study",
      "object": "imap_summary",
      "class": [
        "data.frame"
      ],
      "fields": [
        "mean",
        "sd",
        "n",
        "treatment",
        "arm"
      ],
      "rows": 4,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "preference-package",
      "title": "Design and Analysis of Two-stage Randomized Clinical Trials",
      "topics": [
        "preference-package"
      ]
    },
    {
      "page": "effects_from_means",
      "title": "Calculate Effect Sizes from Means",
      "topics": [
        "effects_from_means"
      ]
    },
    {
      "page": "fit_preference",
      "title": "Fit the Preference Data Collected from a Two-stage Clinical Trial",
      "topics": [
        "fit_preference"
      ]
    },
    {
      "page": "fit_preference_summary",
      "title": "Fit Preference Model from Summary Data",
      "topics": [
        "fit_preference_summary"
      ]
    },
    {
      "page": "imap",
      "title": "Data from the IMAP study",
      "topics": [
        "imap",
        "imap_stratified_summary",
        "imap_summary"
      ]
    },
    {
      "page": "optimal_proportion",
      "title": "Unstratified Optimized Theta",
      "topics": [
        "optimal_proportion"
      ]
    },
    {
      "page": "overall_power_binom",
      "title": "Power Calculation from Sample Size",
      "topics": [
        "overall_power_binom"
      ]
    },
    {
      "page": "overall_sample_size_bin",
      "title": "Overall Sample Size Binomial",
      "topics": [
        "overall_sample_size_bin"
      ]
    },
    {
      "page": "overall_sample_size_pois",
      "title": "Overall Sample Size Poisson Distribution",
      "topics": [
        "overall_sample_size_pois"
      ]
    },
    {
      "page": "plot.preference.trial",
      "title": "Plot the effect sizes of a preference trial",
      "topics": [
        "plot.preference.trial"
      ]
    },
    {
      "page": "preference",
      "title": "Fit Preference Data Collected from a Two-stage Clinical Trial",
      "topics": [
        "preference"
      ]
    },
    {
      "page": "preference.trial",
      "title": "Create a Preference Trial",
      "topics": [
        "preference.trial"
      ]
    },
    {
      "page": "pt_from_power",
      "title": "Design Preference Trials with Power Constraint(s)",
      "topics": [
        "pt_from_power"
      ]
    },
    {
      "page": "pt_from_ss",
      "title": "Design Preference Trials with Sample Size Constraint(s)",
      "topics": [
        "pt_from_ss"
      ]
    },
    {
      "page": "pwr_overall_pois",
      "title": "Power Calculation from Sample Size",
      "topics": [
        "pwr_overall_pois"
      ]
    },
    {
      "page": "pt-accessors",
      "title": "Preference trial parameter accessors",
      "topics": [
        "effect_size",
        "effect_size.preference.trial",
        "power",
        "power.preference.trial",
        "proportion",
        "proportion.preference.trial",
        "sample_size",
        "sample_size.preference.trial",
        "sigma2",
        "sigma2.preference.trial",
        "significance",
        "significance.preference.trial"
      ]
    },
    {
      "page": "treatment_effect_size",
      "title": "Treatment Effect Back Calculation",
      "topics": [
        "treatment_effect_size"
      ]
    }
  ],
  "_readme": "https://github.com/kaneplusplus/preference/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 3.2174839442139063,
  "_indexed": true,
  "_nocasepkg": "preference",
  "_universes": [
    "kaneplusplus"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.5",
      "date": "2026-06-04T07:30:08.000Z",
      "distro": "noble",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "d17304282d326dad86d4b55da6ff1ed9f37dd5a7b6ccab7645cc212a8965d9a0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.5",
      "date": "2026-06-04T07:29:47.000Z",
      "distro": "noble",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "569c2c1b4b56048f274b414baf07d058c1b90be122f6f37f28c7a2c56996d316",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.5",
      "date": "2026-06-04T07:32:21.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "c8940f10cacae5a7cc5068b6908f456930cb4d9f625cf96f2fa3e31711afc504",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.5",
      "date": "2026-06-04T07:31:32.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "e82676fe179f0b60a9c6143230f1189701b9716b4e9dc8d66274026ade37aa69",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.5",
      "date": "2026-06-04T07:29:57.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "f1e8f0b87b16f8224bccf2ae8cba148e5cbb6859d916a989b4b6f487ece81cbc",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-06-04T07:29:08.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "7757117cdbaec3d2125d36e31ff2318580904026aa082ec457f7833137309d01",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-06-04T07:29:07.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "c60a6068293b1682c10c489758a59369df40e257bb6e7f85b4afa6dec545750d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-06-04T07:29:11.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "97bf11023788e097d38cc5f179264d1add535ad360b624cefb39f03af484211f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/26937298220"
    }
  ]
}