{
  "_id": "6a4f5bc921b18e15485011bc",
  "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-07-09 08:25:40 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/e2c073ed561b9f9724ff8f07d7dcc24f5f13ecac56327e22b03b6df3d5f0c30a",
  "_filesize": 423724,
  "_sha256": "e2c073ed561b9f9724ff8f07d7dcc24f5f13ecac56327e22b03b6df3d5f0c30a",
  "_expires": "2026-10-17T08:28:55.000Z",
  "_created": "2026-07-09T08:25:40.000Z",
  "_published": "2026-07-09T08:28:57.169Z",
  "_jobs": [
    {
      "job": 86073445703,
      "time": 105,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8193044151"
    },
    {
      "job": 86073445676,
      "time": 110,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8193045895"
    },
    {
      "job": 86073445725,
      "time": 86,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8193037623"
    },
    {
      "job": 86073445652,
      "time": 89,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8193038251"
    },
    {
      "job": 86072936293,
      "time": 164,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8193001484"
    },
    {
      "job": 86073445691,
      "time": 84,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8193036791"
    },
    {
      "job": 86073445681,
      "time": 55,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8193023085"
    },
    {
      "job": 86073445701,
      "time": 60,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8193024537"
    },
    {
      "job": 86073445675,
      "time": 66,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8193027118"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580",
  "_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": "resolute",
  "_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",
    "followers": 2
  },
  "_downloads": {
    "count": 525,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/powerMediation"
  },
  "_mentions": 8,
  "_searchresults": 74,
  "_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/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.027594211826226,
  "_indexed": true,
  "_nocasepkg": "powermediation",
  "_universes": [
    "weiliang"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-07-09T08:27:39.000Z",
      "distro": "resolute",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/0808c9f7951c47c6f83dbb743c646e70dd52b9c35940462ca10a64a76f6fdb73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-07-09T08:27:42.000Z",
      "distro": "resolute",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/c4dfc89a2c2316447297d168bbf71d58405be186230a888972a5bf415699e4fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-07-09T08:27:21.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/74aa8c958a2a095e7ed43dd1cbcf5c2f69456c70652448796c5239792f7832d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-07-09T08:27:22.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/9fbf2ee9d02cf6ad012898c0156b26118ad62a9b9223a9d151021243c2cf010d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-07-09T08:27:29.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/3674c848fc59733d2f260170fbb2f9a26b31fc1ad932a5dea1f88858c79d9cd9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-07-09T08:26:37.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/41978a27c20558e8a1528c850751edf0a49c2155d53b87ba7042bdac66ec71d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-07-09T08:26:40.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/3660fd9fa4114c079f88214371b5b894455896b517da5bd5191669020e41b1dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-07-09T08:26:48.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/19bfcc84cb248ffb1724ac3e0b34bad1efd3b6cc9f6932b34443d21cc4ea1d68",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/29004538580"
    }
  ]
}