{
  "_id": "6aca7813fe5cc25786e89b73",
  "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-10-10 16:34:24 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>",
  "_user": "kaneplusplus",
  "_type": "src",
  "_file": "preference_1.1.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/ee198bc14f191eeeb5c614b429cf1b04c188a14f3969a87d581bbbd9adc1f72e",
  "_filesize": 180358,
  "_sha256": "ee198bc14f191eeeb5c614b429cf1b04c188a14f3969a87d581bbbd9adc1f72e",
  "_expires": "2027-01-18T17:38:25.000Z",
  "_created": "2026-10-10T16:34:24.000Z",
  "_published": "2026-10-10T17:38:27.366Z",
  "_buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114260156383,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11675822005"
    },
    {
      "job": 114260156325,
      "time": 115,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11675841171"
    },
    {
      "job": 114260156399,
      "time": 154,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11676719504"
    },
    {
      "job": 114260156330,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11676679523"
    },
    {
      "job": 114259615572,
      "time": 161,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676251448"
    },
    {
      "job": 114260156373,
      "time": 85,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11675812186"
    },
    {
      "job": 114260156345,
      "time": 83,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11676501133"
    },
    {
      "job": 114260156319,
      "time": 105,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11675912031"
    },
    {
      "job": 114260156334,
      "time": 95,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11675632204"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 192
  },
  "_downloads": {
    "count": 286,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/preference"
  },
  "_devurl": "https://github.com/kaneplusplus/preference",
  "_searchresults": 12,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/preference.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.255272505103306,
  "_indexed": true,
  "_nocasepkg": "preference",
  "_universes": [
    "kaneplusplus"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.5",
      "date": "2026-10-10T16:36:14.000Z",
      "distro": "resolute",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/cef13b3972ed0ec5709af1d3d94f803c7ca95ef79405bbd8b104d33fa52bb735",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.5",
      "date": "2026-10-10T16:36:20.000Z",
      "distro": "resolute",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/1aadeac8bc3d6de1e713725f1623aa772976fa3318a1c8dbea0f24eebac0d0af",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.5",
      "date": "2026-10-10T17:37:25.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/29605a8c9e6b87f072ac20433259b0a5494f4675b5390171fcba05ad3c115765",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.5",
      "date": "2026-10-10T17:37:07.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/d0fdb199c3965d868731d45760bacb7d2ead18f21a4afcdeb1283a892bfe7076",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.5",
      "date": "2026-10-10T16:36:08.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/7b3dfeba33842f60cdae27fed1b0ea7c2df888c7b69c7b76213c6918da84799c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-10-10T16:35:28.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/0192613b4313e21cf844dcc314605e5a2d3d989d1773560182f6f3383d43c1dd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-10-10T16:35:55.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/ac20017233e22798729ef174c3d2357274f779480a3d6c8bd18c4bb7afcbae66",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-10-10T16:35:41.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/18d238ff67ad1569da40ba126bb4ca65f0c00bd55851d534452234fd920b364b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/38068024413"
    }
  ]
}