{
  "_id": "6a103d45acfb0bcc41c9c394",
  "Package": "genpwr",
  "Title": "Power Calculations Under Genetic Model Misspecification",
  "Version": "1.0.4",
  "Authors@R": "c(person(\"Camille\", \"Moore\", email = \"moorec@njhealth.org\", \nrole = c(\"aut\", \"cre\")), person(\"Sean\", \"Jacobson\", email = \"jacobsons@njhealth.org\",\nrole = \"aut\"))",
  "Description": "Power and sample size calculations for genetic association\nstudies allowing for misspecification of the model of genetic\nsusceptibility. \"Hum Hered.\n2019;84(6):256-271.<doi:10.1159/000508558>. Epub 2020 Jul 28.\"\nPower and/or sample size can be calculated for logistic\n(case/control study design) and linear (continuous phenotype)\nregression models, using additive, dominant, recessive or\ndegree of freedom coding of the genetic covariate while\nassuming a true dominant, recessive or additive genetic effect.\nIn addition, power and sample size calculations can be\nperformed for gene by environment interactions. These methods\nare extensions of Gauderman (2002) <doi:10.1093/aje/155.5.478>\nand Gauderman (2002) <doi:10.1002/sim.973> and are described\nin: Moore CM, Jacobson S, Fingerlin TE. Power and Sample Size\nCalculations for Genetic Association Studies in the Presence of\nGenetic Model Misspecification. American Society of Human\nGenetics. October 2018, San Diego.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.1.1",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-11 09:47:06 UTC",
    "User": "root"
  },
  "Author": "Camille Moore [aut, cre], Sean Jacobson [aut]",
  "Maintainer": "Camille Moore <moorec@njhealth.org>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2021-03-30 23:00:07 UTC",
  "RemoteUrl": "https://github.com/cran/genpwr",
  "RemoteRef": "HEAD",
  "RemoteSha": "51c256c4ce838a132b56287b63a6db579eb925b0",
  "MD5sum": "adbc5402002cf336fe4fa76e51932b58",
  "_user": "cran",
  "_type": "src",
  "_file": "genpwr_1.0.4.tar.gz",
  "_fileid": "752113b49f0143eecc19db3f5d9389a73aabb5e40dbaf97081b4455b1eb03265",
  "_filesize": 1018615,
  "_sha256": "752113b49f0143eecc19db3f5d9389a73aabb5e40dbaf97081b4455b1eb03265",
  "_created": "2026-05-11T09:47:06.000Z",
  "_published": "2026-05-22T11:25:57.414Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77370169455,
      "time": 149,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6915334843"
    },
    {
      "job": 77370169124,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6915333521"
    },
    {
      "job": 77370168870,
      "time": 224,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6915280469"
    },
    {
      "job": 77370168687,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159354454"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/25662478915",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/genpwr",
  "_commit": {
    "id": "51c256c4ce838a132b56287b63a6db579eb925b0",
    "author": "Camille Moore <moorec@njhealth.org>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.4\n",
    "time": 1617145207
  },
  "_maintainer": {
    "name": "Camille Moore",
    "email": "moorec@njhealth.org"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "nleqslv",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 86,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/genpwr"
  },
  "_mentions": 4,
  "_searchresults": 41,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/genpwr.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2019-04-04"
    },
    {
      "version": "1.0.1",
      "date": "2019-09-17"
    },
    {
      "version": "1.0.2",
      "date": "2020-04-07"
    },
    {
      "version": "1.0.3",
      "date": "2021-03-22"
    },
    {
      "version": "1.0.4",
      "date": "2021-03-31"
    }
  ],
  "_exports": [
    "add.fun.t",
    "add.or.function",
    "additive.ll",
    "additive.ll.linear",
    "as.numeric2",
    "calc.like",
    "calc.like.linear",
    "calc.like.linear.log.envir.interaction",
    "df2.ll",
    "df2.ll.linear",
    "dom.fun.t",
    "dom.or.function",
    "dominant.ll",
    "dominant.ll.linear",
    "es.calc.linear",
    "expected.linear.ll",
    "expected.linear.ll.lin.env",
    "find.prob.dom",
    "find.prob.rec",
    "genpwr.calc",
    "integrand_funct_case",
    "integrand_funct_control",
    "linear.mles",
    "linear.mles.lin.envir.interaction",
    "linear.mles.lin.envir.interaction_reduced",
    "linear.mles.log.envir.interaction",
    "linear.outcome.lin.envir.interaction.sds",
    "linear.outcome.lin.envir.interaction.sds_reduced",
    "linear.outcome.log.envir.interaction.sds",
    "linear.sds",
    "ll_zero_finder2",
    "ll.ge.logistic",
    "ll.ge.logistic.lin.envir",
    "ll.linear.selector",
    "logistic.mles",
    "logit",
    "ncp.search",
    "null.ll",
    "null.ll.linear",
    "odds_ratio_function",
    "or_calc",
    "or.function.2df",
    "or.plot",
    "p_vec_returner",
    "p_vec_returner_lin_env",
    "power_envir.calc",
    "power_envir.calc.linear_outcome",
    "power_linear_envir.calc.linear_outcome",
    "power_linear_envir.calc.logistic_outcome",
    "power.calc",
    "power.calc.linear",
    "power.plot",
    "quad_roots",
    "rec.fun.t",
    "rec.or.function",
    "recessive.ll",
    "recessive.ll.linear",
    "solve_a",
    "ss_envir.calc",
    "ss_envir.calc.linear_outcome",
    "ss_linear_envir.calc.linear_outcome",
    "ss_linear_envir.calc.logistic_outcome",
    "ss.calc",
    "ss.calc.linear",
    "ss.plot",
    "X_mat_returner",
    "X_mat_returner_lle",
    "zero_finder_nleqslv"
  ],
  "_help": [
    {
      "page": "add.fun.t",
      "title": "Function to Calculate t matrix for logistic outcome with binary environment interaction in additive model",
      "topics": [
        "add.fun.t"
      ]
    },
    {
      "page": "add.or.function",
      "title": "Additive Model Function",
      "topics": [
        "add.or.function"
      ]
    },
    {
      "page": "additive.ll",
      "title": "Function to Calculate Additive Log Likelihood for a Logistic Regression Model",
      "topics": [
        "additive.ll"
      ]
    },
    {
      "page": "additive.ll.linear",
      "title": "Function to Calculate Additive Log Likelihood for a Linear Regression Model",
      "topics": [
        "additive.ll.linear"
      ]
    },
    {
      "page": "as.numeric2",
      "title": "Function to convert to numeric with scientific notation containing the \".\" character",
      "topics": [
        "as.numeric2"
      ]
    },
    {
      "page": "calc.like",
      "title": "Function to Calculate Log Likelihood for a Logistic Regression Model",
      "topics": [
        "calc.like"
      ]
    },
    {
      "page": "calc.like.linear",
      "title": "Function to Calculate Log Likelihood for a Linear Regression Model",
      "topics": [
        "calc.like.linear"
      ]
    },
    {
      "page": "calc.like.linear.log.envir.interaction",
      "title": "Function to calculate the standard deviation of y given x for linear models with logistic environment interaction",
      "topics": [
        "calc.like.linear.log.envir.interaction"
      ]
    },
    {
      "page": "df2.ll",
      "title": "Function to Calculate 2df Log Likelihood for a Logistic Regression Model",
      "topics": [
        "df2.ll"
      ]
    },
    {
      "page": "df2.ll.linear",
      "title": "Function to Calculate 2 Degree of Freedom Log Likelihood for a Linear Regression Model",
      "topics": [
        "df2.ll.linear"
      ]
    },
    {
      "page": "dom.fun.t",
      "title": "Function to Calculate t matrix for logistic outcome with binary environment interaction in dominant model",
      "topics": [
        "dom.fun.t"
      ]
    },
    {
      "page": "dom.or.function",
      "title": "Dominant Model Function",
      "topics": [
        "dom.or.function"
      ]
    },
    {
      "page": "dominant.ll",
      "title": "Function to Calculate Dominant Log Likelihood for a Logistic Regression Model",
      "topics": [
        "dominant.ll"
      ]
    },
    {
      "page": "dominant.ll.linear",
      "title": "Function to Calculate Dominant Log Likelihood for a Linear Regression Model",
      "topics": [
        "dominant.ll.linear"
      ]
    },
    {
      "page": "es.calc.linear",
      "title": "Function to Calculate Effect Size for Linear Models",
      "topics": [
        "es.calc.linear"
      ]
    },
    {
      "page": "expected.linear.ll",
      "title": "Function to Calculate Expected Log Likelihood for a Single Genotype",
      "topics": [
        "expected.linear.ll"
      ]
    },
    {
      "page": "expected.linear.ll.lin.env",
      "title": "Function to Calculate Expected Log Likelihood for a Single Genotype with linear environment interaction",
      "topics": [
        "expected.linear.ll.lin.env"
      ]
    },
    {
      "page": "find.prob.dom",
      "title": "Dominant probability finding function",
      "topics": [
        "find.prob.dom"
      ]
    },
    {
      "page": "find.prob.rec",
      "title": "Recessive probability finding function",
      "topics": [
        "find.prob.rec"
      ]
    },
    {
      "page": "genpwr.calc",
      "title": "Function to Calculate Power for Linear Models with logistic environment interaction",
      "topics": [
        "genpwr.calc"
      ]
    },
    {
      "page": "integrand_funct_case",
      "title": "Function to generate integrand for mle for cases",
      "topics": [
        "integrand_funct_case"
      ]
    },
    {
      "page": "integrand_funct_control",
      "title": "Function to generate integrand for mle for controls",
      "topics": [
        "integrand_funct_control"
      ]
    },
    {
      "page": "linear.mles",
      "title": "Function to calculate MLE's for linear models",
      "topics": [
        "linear.mles"
      ]
    },
    {
      "page": "linear.mles.lin.envir.interaction",
      "title": "Function to calculate the standard deviation of y given x for linear models with linear environment interaction",
      "topics": [
        "linear.mles.lin.envir.interaction"
      ]
    },
    {
      "page": "linear.mles.lin.envir.interaction_reduced",
      "title": "Function to calculate the standard deviation of y given x for linear models with linear environment interaction for the reduced model without GxE interaction",
      "topics": [
        "linear.mles.lin.envir.interaction_reduced"
      ]
    },
    {
      "page": "linear.mles.log.envir.interaction",
      "title": "Function to calculate the standard deviation of y given x for linear models with logistic environment interaction",
      "topics": [
        "linear.mles.log.envir.interaction"
      ]
    },
    {
      "page": "linear.outcome.lin.envir.interaction.sds",
      "title": "Function to calculate the standard deviation of y given x for linear models with linear environment interaction",
      "topics": [
        "linear.outcome.lin.envir.interaction.sds"
      ]
    },
    {
      "page": "linear.outcome.lin.envir.interaction.sds_reduced",
      "title": "Function to calculate the standard deviation of y given x for linear models with linear environment interaction",
      "topics": [
        "linear.outcome.lin.envir.interaction.sds_reduced"
      ]
    },
    {
      "page": "linear.outcome.log.envir.interaction.sds",
      "title": "Function to calculate the standard deviation of y given x for linear models with logistic environment interaction",
      "topics": [
        "linear.outcome.log.envir.interaction.sds"
      ]
    },
    {
      "page": "linear.sds",
      "title": "Functions to Calculate Residual SD for Normal/Continuous Outcomes Function to calculate the standard deviation of y given x for linear models",
      "topics": [
        "linear.sds"
      ]
    },
    {
      "page": "ll_zero_finder2",
      "title": "Zero finding function",
      "topics": [
        "ll_zero_finder2"
      ]
    },
    {
      "page": "ll.ge.logistic",
      "title": "Function to calculate MLE's for logistic models with logistic environment interaction",
      "topics": [
        "ll.ge.logistic"
      ]
    },
    {
      "page": "ll.ge.logistic.lin.envir",
      "title": "Function to output log likelihood for logistic outcome with linear environment variables",
      "topics": [
        "ll.ge.logistic.lin.envir"
      ]
    },
    {
      "page": "ll.linear.selector",
      "title": "Function to return log likelihood function for specified model type",
      "topics": [
        "ll.linear.selector"
      ]
    },
    {
      "page": "logistic.mles",
      "title": "Function to calculate MLE's for logistic models",
      "topics": [
        "logistic.mles"
      ]
    },
    {
      "page": "logit",
      "title": "Logit Function",
      "topics": [
        "logit"
      ]
    },
    {
      "page": "ncp.search",
      "title": "Function to Determine Non-Centrality Parameter of the Chi-squared distribution",
      "topics": [
        "ncp.search"
      ]
    },
    {
      "page": "null.ll",
      "title": "Function to Calculate Null Log Likelihood for a Logistic Regression Model",
      "topics": [
        "null.ll"
      ]
    },
    {
      "page": "null.ll.linear",
      "title": "Function to Calculate Expected Null Log Likelihood for a Linear Regression Model",
      "topics": [
        "null.ll.linear"
      ]
    },
    {
      "page": "odds_ratio_function",
      "title": "Odds Ratio Function",
      "topics": [
        "odds_ratio_function"
      ]
    },
    {
      "page": "or_calc",
      "title": "Odds ratio calculation",
      "topics": [
        "or_calc"
      ]
    },
    {
      "page": "or.function.2df",
      "title": "2df Model Function",
      "topics": [
        "or.function.2df"
      ]
    },
    {
      "page": "or.plot",
      "title": "Function to Plot Odds Ratio Results",
      "topics": [
        "or.plot"
      ]
    },
    {
      "page": "p_vec_returner",
      "title": "Function to output probability vector used in calculation of MLE's for linear outcome with logistic environment interaction",
      "topics": [
        "p_vec_returner"
      ]
    },
    {
      "page": "p_vec_returner_lin_env",
      "title": "Function to output probability vector used in calculation of MLE's for linear outcome with linear environment interaction",
      "topics": [
        "p_vec_returner_lin_env"
      ]
    },
    {
      "page": "power_envir.calc",
      "title": "Function to Calculate Power for Logistic Models with Environment Interaction",
      "topics": [
        "power_envir.calc"
      ]
    },
    {
      "page": "power_envir.calc.linear_outcome",
      "title": "Function to Calculate Power for Linear Models with logistic environment interaction",
      "topics": [
        "power_envir.calc.linear_outcome"
      ]
    },
    {
      "page": "power_linear_envir.calc.linear_outcome",
      "title": "Function to Calculate Power for Linear Models with linear environment interaction",
      "topics": [
        "power_linear_envir.calc.linear_outcome"
      ]
    },
    {
      "page": "power_linear_envir.calc.logistic_outcome",
      "title": "Function to Calculate Power for Linear Models with logistic environment interaction",
      "topics": [
        "power_linear_envir.calc.logistic_outcome"
      ]
    },
    {
      "page": "power.calc",
      "title": "Function to Calculate Power",
      "topics": [
        "power.calc"
      ]
    },
    {
      "page": "power.calc.linear",
      "title": "Function to Calculate Power for Linear Models",
      "topics": [
        "power.calc.linear"
      ]
    },
    {
      "page": "power.plot",
      "title": "Function to Plot Power Results",
      "topics": [
        "power.plot"
      ]
    },
    {
      "page": "quad_roots",
      "title": "Function to Solve Quadratic Equations",
      "topics": [
        "quad_roots"
      ]
    },
    {
      "page": "rec.fun.t",
      "title": "Function to Calculate t matrix for logistic outcome with binary environment interaction in recessive model",
      "topics": [
        "rec.fun.t"
      ]
    },
    {
      "page": "rec.or.function",
      "title": "Recessive Model Function",
      "topics": [
        "rec.or.function"
      ]
    },
    {
      "page": "recessive.ll",
      "title": "Function to Calculate Recessive Log Likelihood for a Logistic Regression Model",
      "topics": [
        "recessive.ll"
      ]
    },
    {
      "page": "recessive.ll.linear",
      "title": "Function to Calculate Recessive Log Likelihood for a Linear Regression Model",
      "topics": [
        "recessive.ll.linear"
      ]
    },
    {
      "page": "solve_a",
      "title": "Binomial coefficient calculation",
      "topics": [
        "solve_a"
      ]
    },
    {
      "page": "ss_envir.calc",
      "title": "Function to Calculate Power for Logistic Models with Environment Interaction",
      "topics": [
        "ss_envir.calc"
      ]
    },
    {
      "page": "ss_envir.calc.linear_outcome",
      "title": "Function to Calculate Power for Linear Models with logistic environment interaction",
      "topics": [
        "ss_envir.calc.linear_outcome"
      ]
    },
    {
      "page": "ss_linear_envir.calc.linear_outcome",
      "title": "Function to Calculate Power for Linear Models with linear environment interaction",
      "topics": [
        "ss_linear_envir.calc.linear_outcome"
      ]
    },
    {
      "page": "ss_linear_envir.calc.logistic_outcome",
      "title": "Function to Calculate Sample Size for Linear Models with logistic environment interaction",
      "topics": [
        "ss_linear_envir.calc.logistic_outcome"
      ]
    },
    {
      "page": "ss.calc",
      "title": "Function to Calculate Sample Size",
      "topics": [
        "ss.calc"
      ]
    },
    {
      "page": "ss.calc.linear",
      "title": "Function to Calculate Sample Size in Linear Models",
      "topics": [
        "ss.calc.linear"
      ]
    },
    {
      "page": "ss.plot",
      "title": "Function to Plot Sample Size Results",
      "topics": [
        "ss.plot"
      ]
    },
    {
      "page": "X_mat_returner",
      "title": "Function to output X matrices used in calculation of MLE's for linear outcome with logistic environment interaction",
      "topics": [
        "X_mat_returner"
      ]
    },
    {
      "page": "X_mat_returner_lle",
      "title": "Function to output X matrices used in calculation of MLE's for linear outcome with linear environment interaction",
      "topics": [
        "X_mat_returner_lle"
      ]
    },
    {
      "page": "zero_finder_nleqslv",
      "title": "Zero finder",
      "topics": [
        "zero_finder_nleqslv"
      ]
    }
  ],
  "_readme": "https://github.com/cran/genpwr/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "MASS",
    "nleqslv",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "vignette.Rmd",
      "filename": "vignette.html",
      "title": "Introduction to genpwr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Install genpwr",
        "Examples",
        "Power Calculation for a Case Control Study",
        "Sample Size Calculation for a Case Control Study",
        "Detectable Odds Ratio Calculation for a Case Control Study",
        "Power Calculation for a Case Control Study with a Gene x Environment Interaction",
        "Sample Size Calculation for a Case Control Study with a Gene x Environment Interaction"
      ],
      "created": "2019-04-04 16:40:03",
      "modified": "2019-04-04 16:40:03",
      "commits": 1
    }
  ],
  "_score": 4.390935107103379,
  "_indexed": true,
  "_nocasepkg": "genpwr",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.4",
      "date": "2026-05-11T09:49:20.000Z",
      "distro": "noble",
      "commit": "51c256c4ce838a132b56287b63a6db579eb925b0",
      "fileid": "9d13ab5f7a67e4aa59fbb07a582ad8518a3f7436c30b206f8dfb15979e55e314",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25662478915"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.4",
      "date": "2026-05-11T09:49:16.000Z",
      "distro": "noble",
      "commit": "51c256c4ce838a132b56287b63a6db579eb925b0",
      "fileid": "ac206c752fcc1f1559f69ce80dfda89f3ad35198162d1650d4540a1b7d28ba26",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25662478915"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.4",
      "date": "2026-05-22T11:25:43.000Z",
      "commit": "51c256c4ce838a132b56287b63a6db579eb925b0",
      "fileid": "68e9a9f5ef00f1ff4a868d676f5b6b0acc8dca5c4272d529c9a674656d6479b4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25662478915"
    }
  ]
}