{
  "_id": "6a48a5c9e06c18f0a6545061",
  "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-07-04 05:53:42 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/7c19fe930b0d9aa11a4c3e71c2714dbcb32fd571600b0233bcf4937206c3f7c0",
  "_filesize": 182407,
  "_sha256": "7c19fe930b0d9aa11a4c3e71c2714dbcb32fd571600b0233bcf4937206c3f7c0",
  "_expires": "2026-10-12T06:18:47.000Z",
  "_created": "2026-07-04T05:53:42.000Z",
  "_published": "2026-07-04T06:18:49.016Z",
  "_jobs": [
    {
      "job": 85107950964,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8078882413"
    },
    {
      "job": 85107950972,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8078881440"
    },
    {
      "job": 85107950961,
      "time": 135,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8079054870"
    },
    {
      "job": 85107950966,
      "time": 126,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8079055708"
    },
    {
      "job": 85107744103,
      "time": 190,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8078863220"
    },
    {
      "job": 85107950998,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8078877672"
    },
    {
      "job": 85107950970,
      "time": 84,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8078874579"
    },
    {
      "job": 85107950978,
      "time": 91,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8078875699"
    },
    {
      "job": 85107950990,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8078875892"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999",
  "_status": "success",
  "_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": 193
  },
  "_downloads": {
    "count": 344,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/preference"
  },
  "_devurl": "https://github.com/kaneplusplus/preference",
  "_searchresults": 11,
  "_rbuild": "4.6.1",
  "_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-07-04T05:55:57.000Z",
      "distro": "resolute",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/ebbce31127b93bb44c9c7fe561392cce136c20cac8c8b09ad6bf6fe3d7734dee",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.5",
      "date": "2026-07-04T05:55:51.000Z",
      "distro": "resolute",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/dd5108dbf9151eea61a670efb0330c522593e399a1d253d2dc5750e693443e02",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.5",
      "date": "2026-07-04T06:17:42.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/db0bb505f76228b3dbe9d7c268e6567277d6075daa5a6c439462f09442e4c5a0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.5",
      "date": "2026-07-04T06:17:47.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/86a2a379160dc2ccbdb6baee1ebf5fb0ccca6f06e3ed3b425b3df36286ef1427",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.5",
      "date": "2026-07-04T05:55:47.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/cc8ff2c2edf6cbdb74f9595fc1b8b9281976aa1b7e5848de0dc427aa5f944323",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-07-04T05:54:49.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/2a59ec058e4c125e9c14c74c23d827aedf38c80f2d0ae26e83698b8bc59776e4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-07-04T05:54:58.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/a1acfe4d0b3469fb0cca6f36c7a0adf8ee118f4ba210a5c9510d5c8f86da8f5c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.5",
      "date": "2026-07-04T05:54:58.000Z",
      "commit": "e0f11a502d82644bd728fbaa0bf60d999ea30361",
      "fileid": "https://r2.ropensci.org/7ee4c9e06bafcc31949f1330232da5490aff4c84b087823cda5db65927ac3247",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kaneplusplus/actions/runs/28696799999"
    }
  ]
}