{
  "_id": "6a4a1f1e0784416d7d819d47",
  "Package": "powerMediation",
  "Version": "0.3.4",
  "Date": "2021-03-22",
  "Title": "Power/Sample Size Calculation for Mediation Analysis",
  "Author": "Weiliang Qiu <weiliang.qiu@gmail.com>",
  "Maintainer": "Weiliang Qiu <weiliang.qiu@gmail.com>",
  "Description": "Functions to calculate power and sample size for testing\n(1) mediation effects; (2) the slope in a simple linear\nregression; (3) odds ratio in a simple logistic regression; (4)\nmean change for longitudinal study with 2 time points; (5)\ninteraction effect in 2-way ANOVA; and (6) the slope in a\nsimple Poisson regression.",
  "License": "GPL (>= 2)",
  "Packaged": {
    "Date": "2026-06-09 08:39:13 UTC",
    "User": "root"
  },
  "NeedsCompilation": "no",
  "Repository": "https://weiliang.r-universe.dev",
  "Date/Publication": "2021-03-23 13:20:02 UTC",
  "RemoteUrl": "https://github.com/cran/powerMediation",
  "RemoteRef": "HEAD",
  "RemoteSha": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
  "_user": "weiliang",
  "_type": "src",
  "_file": "powerMediation_0.3.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/9384509ac83062bb00698b18a26153860bec2586300e29574e2d64ae343481e0",
  "_filesize": 420223,
  "_sha256": "9384509ac83062bb00698b18a26153860bec2586300e29574e2d64ae343481e0",
  "_expires": "2026-10-13T09:08:45.000Z",
  "_created": "2026-06-09T08:39:13.000Z",
  "_published": "2026-07-05T09:08:46.898Z",
  "_jobs": [
    {
      "job": 85209544561,
      "time": 95,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7502673290"
    },
    {
      "job": 85209544549,
      "time": 95,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502673410"
    },
    {
      "job": 85209544548,
      "time": 85,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7502669740"
    },
    {
      "job": 85209544472,
      "time": 97,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502673797"
    },
    {
      "job": 85209544348,
      "time": 117,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502638428"
    },
    {
      "job": 85209544614,
      "time": 74,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502665257"
    },
    {
      "job": 85209544490,
      "time": 91,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7502671713"
    },
    {
      "job": 85209544638,
      "time": 56,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7502659255"
    },
    {
      "job": 85209544627,
      "time": 53,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502658127"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352",
  "_status": "success",
  "_upstream": "https://github.com/cran/powerMediation",
  "_commit": {
    "id": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
    "author": "Weiliang Qiu <weiliang.qiu@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.3.4\n",
    "time": 1616505602
  },
  "_maintainer": {
    "name": "Weiliang Qiu",
    "email": "weiliang.qiu@gmail.com",
    "login": "weiliang",
    "description": "",
    "uuid": 755168
  },
  "_distro": "noble",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Depends"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "weiliangqiu",
      "count": 12,
      "uuid": 22828973
    },
    {
      "user": "weiliang",
      "count": 2,
      "uuid": 755168
    }
  ],
  "_userbio": {
    "uuid": 755168,
    "type": "user",
    "name": "weiliang"
  },
  "_downloads": {
    "count": 470,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/powerMediation"
  },
  "_mentions": 8,
  "_searchresults": 72,
  "_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/powerMediation.html",
    "manual.pdf"
  ],
  "_realowner": "weiliang",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.0.6",
      "date": "2010-02-04"
    },
    {
      "version": "0.0.7",
      "date": "2011-08-17"
    },
    {
      "version": "0.0.8",
      "date": "2012-03-12"
    },
    {
      "version": "0.1.0",
      "date": "2012-11-30"
    },
    {
      "version": "0.1.3",
      "date": "2013-04-29"
    },
    {
      "version": "0.1.7",
      "date": "2013-11-09"
    },
    {
      "version": "0.2.3",
      "date": "2015-02-23"
    },
    {
      "version": "0.2.4",
      "date": "2015-05-08"
    },
    {
      "version": "0.2.6",
      "date": "2017-01-27"
    },
    {
      "version": "0.2.7",
      "date": "2017-02-16"
    },
    {
      "version": "0.2.8",
      "date": "2017-09-12"
    },
    {
      "version": "0.2.9",
      "date": "2018-02-07"
    },
    {
      "version": "0.3.2",
      "date": "2020-04-07"
    },
    {
      "version": "0.3.4",
      "date": "2021-03-23"
    }
  ],
  "_exports": [
    "minEffect.SLR",
    "minEffect.VSMc",
    "minEffect.VSMc.cox",
    "minEffect.VSMc.logistic",
    "minEffect.VSMc.poisson",
    "power.SLR",
    "power.SLR.rho",
    "powerInteract2by2",
    "powerLogisticBin",
    "powerLogisticCon",
    "powerLong",
    "powerLong.multiTime",
    "powerLongFull",
    "powerMediation.Sobel",
    "powerMediation.VSMc",
    "powerMediation.VSMc.cox",
    "powerMediation.VSMc.logistic",
    "powerMediation.VSMc.poisson",
    "powerPoisson",
    "sizePoisson",
    "ss.SLR",
    "ss.SLR.rho",
    "SSizeLogisticBin",
    "SSizeLogisticCon",
    "ssLong",
    "ssLong.multiTime",
    "ssLongFull",
    "ssMediation.Sobel",
    "ssMediation.VSMc",
    "ssMediation.VSMc.cox",
    "ssMediation.VSMc.logistic",
    "ssMediation.VSMc.poisson",
    "testMediation.Sobel"
  ],
  "_help": [
    {
      "page": "minEffect.SLR",
      "title": "Minimum detectable slope",
      "topics": [
        "minEffect.SLR"
      ]
    },
    {
      "page": "minEffect.VSMc",
      "title": "Minimum detectable slope for mediator in linear regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "minEffect.VSMc"
      ]
    },
    {
      "page": "minEffect.VSMc.cox",
      "title": "Minimum detectable slope for mediator in cox regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "minEffect.VSMc.cox"
      ]
    },
    {
      "page": "minEffect.VSMc.logistic",
      "title": "Minimum detectable slope for mediator in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "minEffect.VSMc.logistic"
      ]
    },
    {
      "page": "minEffect.VSMc.poisson",
      "title": "Minimum detectable slope for mediator in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "minEffect.VSMc.poisson"
      ]
    },
    {
      "page": "power.SLR",
      "title": "Power for testing slope for simple linear regression",
      "topics": [
        "power.SLR"
      ]
    },
    {
      "page": "power.SLR.rho",
      "title": "Power for testing slope for simple linear regression",
      "topics": [
        "power.SLR.rho"
      ]
    },
    {
      "page": "powerInteract2by2",
      "title": "Power Calculation for Interaction Effect in 2x2 Two-Way ANOVA Given Effect Sizes",
      "topics": [
        "powerInteract2by2"
      ]
    },
    {
      "page": "powerLogisticBin",
      "title": "Calculating power for simple logistic regression with binary predictor",
      "topics": [
        "powerLogisticBin"
      ]
    },
    {
      "page": "powerLogisticCon",
      "title": "Calculating power for simple logistic regression with continuous predictor",
      "topics": [
        "powerLogisticCon"
      ]
    },
    {
      "page": "powerLong",
      "title": "Power calculation for longitudinal study with 2 time point",
      "topics": [
        "powerLong"
      ]
    },
    {
      "page": "powerLong.multiTime",
      "title": "Power calculation for testing if mean changes for 2 groups are the same or not for longitudinal study with more than 2 time points",
      "topics": [
        "powerLong.multiTime"
      ]
    },
    {
      "page": "powerLongFull",
      "title": "Power calculation for longitudinal study with 2 time point",
      "topics": [
        "powerLongFull"
      ]
    },
    {
      "page": "powerMediation.Sobel",
      "title": "Power for testing mediation effect (Sobel's test)",
      "topics": [
        "powerMediation.Sobel"
      ]
    },
    {
      "page": "powerMediation.VSMc",
      "title": "Power for testing mediation effect in linear regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "powerMediation.VSMc"
      ]
    },
    {
      "page": "powerMediation.VSMc.cox",
      "title": "Power for testing mediation effect in cox regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "powerMediation.VSMc.cox"
      ]
    },
    {
      "page": "powerMediation.VSMc.logistic",
      "title": "Power for testing mediation effect in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "powerMediation.VSMc.logistic"
      ]
    },
    {
      "page": "powerMediation.VSMc.poisson",
      "title": "Power for testing mediation effect in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "powerMediation.VSMc.poisson"
      ]
    },
    {
      "page": "powerPoisson",
      "title": "Power calculation for simple Poisson regression",
      "topics": [
        "powerPoisson"
      ]
    },
    {
      "page": "sizePoisson",
      "title": "Sample size calculation for simple Poisson regression",
      "topics": [
        "sizePoisson"
      ]
    },
    {
      "page": "ss.SLR",
      "title": "Sample size for testing slope for simple linear regression",
      "topics": [
        "ss.SLR"
      ]
    },
    {
      "page": "ss.SLR.rho",
      "title": "Sample size for testing slope for simple linear regression based on R2",
      "topics": [
        "ss.SLR.rho"
      ]
    },
    {
      "page": "SSizeLogisticBin",
      "title": "Calculating sample size for simple logistic regression with binary predictor",
      "topics": [
        "SSizeLogisticBin"
      ]
    },
    {
      "page": "SSizeLogisticCon",
      "title": "Calculating sample size for simple logistic regression with continuous predictor",
      "topics": [
        "SSizeLogisticCon"
      ]
    },
    {
      "page": "ssLong",
      "title": "Sample size calculation for longitudinal study with 2 time point",
      "topics": [
        "ssLong"
      ]
    },
    {
      "page": "ssLong.multiTime",
      "title": "Sample size calculation for testing if mean changes for 2 groups are the same or not for longitudinal study with more than 2 time points",
      "topics": [
        "ssLong.multiTime"
      ]
    },
    {
      "page": "ssLongFull",
      "title": "Sample size calculation for longitudinal study with 2 time point",
      "topics": [
        "ssLongFull"
      ]
    },
    {
      "page": "ssMediation.Sobel",
      "title": "Sample size for testing mediation effectd (Sobel's test)",
      "topics": [
        "ssMediation.Sobel"
      ]
    },
    {
      "page": "ssMediation.VSMc",
      "title": "Sample size for testing mediation effect in linear regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "ssMediation.VSMc"
      ]
    },
    {
      "page": "ssMediation.VSMc.cox",
      "title": "Sample size for testing mediation effect in cox regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "ssMediation.VSMc.cox"
      ]
    },
    {
      "page": "ssMediation.VSMc.logistic",
      "title": "Sample size for testing mediation effect in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "ssMediation.VSMc.logistic"
      ]
    },
    {
      "page": "ssMediation.VSMc.poisson",
      "title": "Sample size for testing mediation effect in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) method",
      "topics": [
        "ssMediation.VSMc.poisson"
      ]
    },
    {
      "page": "testMediation.Sobel",
      "title": "P-value and confidence interval for testing mediation effect (Sobel's test)",
      "topics": [
        "testMediation.Sobel"
      ]
    }
  ],
  "_rundeps": [],
  "_score": 4.015694988526518,
  "_indexed": true,
  "_nocasepkg": "powermediation",
  "_universes": [
    "weiliang"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:55.000Z",
      "distro": "noble",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/2594137d1ca65547d3bd2d4e6a6524acf6c1fbecc7e8ed2d42ef26764203f2cb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:55.000Z",
      "distro": "noble",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/28189815ed23097c439881af032ce15beebce8ef4593cb6918ab2b5f69db40f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:48.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/2b7a6790ffe2192bf74dbb1404d8c3552b26b33cc32531c49278d7edef742b0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:56.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/8f3168487f7ee92d24366656b9153368a1eed6c4017a772da9eee09db0dcd381",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:42.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/15b33a94f5564fc74f0eeea249d244b0326df2e56215f5dffefefa83251de1f1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:36.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/445c9c6c1fa70a132235a6b0a175f61488522dfab5c9eadb46a3d8f2937b8f00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:13.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/0bcd6946bd5b6bfd54f3dc49d8f0a360588044ec5bad78fed693630aeb8b66b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-06-09T08:40:10.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/abf6f0f99c78a5c537e351b18c43202d015904d60b2e3c60c78186409ec8f12c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/27194218352"
    }
  ]
}