{
  "_id": "6acb80b7fe5cc25786e90eda",
  "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-10-11 12:25:09 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/f6b30cba390024c4d89acc4fe8fbfe8f9b6acd777624e26326a62ff064506808",
  "_filesize": 419798,
  "_sha256": "f6b30cba390024c4d89acc4fe8fbfe8f9b6acd777624e26326a62ff064506808",
  "_expires": "2027-01-19T12:27:33.000Z",
  "_created": "2026-10-11T12:25:09.000Z",
  "_published": "2026-10-11T12:27:35.574Z",
  "_buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114469344251,
      "time": 112,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11701393898"
    },
    {
      "job": 114469344194,
      "time": 101,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701999514"
    },
    {
      "job": 114469344291,
      "time": 71,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11702293632"
    },
    {
      "job": 114469344253,
      "time": 87,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701929481"
    },
    {
      "job": 114468911872,
      "time": 135,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11702248659"
    },
    {
      "job": 114469344279,
      "time": 67,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11701994528"
    },
    {
      "job": 114469344199,
      "time": 63,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11702109132"
    },
    {
      "job": 114469344271,
      "time": 57,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11702143964"
    },
    {
      "job": 114469344236,
      "time": 57,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701224263"
    }
  ],
  "_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": 1,
  "_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": 472,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/powerMediation"
  },
  "_mentions": 8,
  "_searchresults": 71,
  "_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/powerMediation.html"
  ],
  "_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": 3.7085908451503435,
  "_indexed": true,
  "_nocasepkg": "powermediation",
  "_universes": [
    "weiliang"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-10-11T12:27:08.000Z",
      "distro": "resolute",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/1d6c42ba96cc38dfdbc77caeec03da6b3f0e4b171ebab5e387324a70adcc2f3f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-10-11T12:27:00.000Z",
      "distro": "resolute",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/7eae19ce39c346a5140a829d02cb5b12d874d5f3f42bdbfe7782eef2b3120f5e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-10-11T12:26:33.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/1ae19b291b0993e10e071604871cd9c45702d6feb0d9461cefb08a862bd82824",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-10-11T12:26:47.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/c3620e8d438fcb184c40b0896e6aa877fc0af0bfe3377398180811ebe4350c6d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-10-11T12:26:32.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/748da0417971d7d3962e3df7467632a666d7d2db118d3407eccd2e5c3ade7336",
      "status": "success",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-10-11T12:26:11.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/7b1aaacf21a4fc22f0018e848ec6b648694a969b098b4968bfcdb7fc1f4149c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-10-11T12:26:06.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/930b3b68246558080c99b9707d7289c0dd6b14735c1f1f302bb0184cf69d5df0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-10-11T12:26:06.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "https://r2.ropensci.org/bbc546f0fcb50743dfd4db3f8683e7505ca02540f4b188db910538c00508c3ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/38139035360"
    }
  ]
}