{
  "_id": "6a104d84acfb0bcc41ca06a1",
  "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-05-10 06:55: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",
  "MD5sum": "8487261ee435a65ca22a8b158d82196c",
  "_user": "weiliang",
  "_type": "src",
  "_file": "powerMediation_0.3.4.tar.gz",
  "_fileid": "856a63a6084197f7125d31e7e70082161f09f0bbda911edd0f18c7517e9a95cd",
  "_filesize": 421566,
  "_sha256": "856a63a6084197f7125d31e7e70082161f09f0bbda911edd0f18c7517e9a95cd",
  "_created": "2026-05-10T06:55:40.000Z",
  "_published": "2026-05-22T12:35:16.136Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77380452489,
      "time": 84,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6901753822"
    },
    {
      "job": 77380452210,
      "time": 97,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901755467"
    },
    {
      "job": 77380452494,
      "time": 59,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6901751210"
    },
    {
      "job": 77380452220,
      "time": 70,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901752497"
    },
    {
      "job": 77380451802,
      "time": 163,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901743998"
    },
    {
      "job": 77380451795,
      "time": 78,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7160590140"
    },
    {
      "job": 77380452145,
      "time": 56,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6901750707"
    },
    {
      "job": 77380452355,
      "time": 62,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6901751547"
    },
    {
      "job": 77380452326,
      "time": 60,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901751115"
    }
  ],
  "_buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 755168
  },
  "_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": 509,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/powerMediation"
  },
  "_mentions": 8,
  "_searchresults": 69,
  "_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": 3.997211582832505,
  "_indexed": true,
  "_nocasepkg": "powermediation",
  "_universes": [
    "weiliang"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-05-10T06:57:14.000Z",
      "distro": "noble",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "2b77a576ffb649c03b69163bc1f447abf3eca891e5887fb11cf88b5b90bb2601",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-05-10T06:57:28.000Z",
      "distro": "noble",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "1ee033bdb5cca8b3e8bb0520718efc7d6dafb620a2e28cc7eefb5e4ed079ece1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-10T06:56:55.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "9e9f34eecce6654a6754523b4f93ee80fa196e86741ac3c12881ed2aa15637a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-10T06:57:05.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "6858309fc7bb905f009d37b0b79e4c9600cf1c2a863d82e27b7bd26ddc520b50",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-10T06:56:42.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "bdcbd543f20950868174d4a54d2246adf036461ee0e39d5e953b266e04bbfa7f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-10T06:56:49.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "7be9042e41d1cd9f97bd92e7c6bf2fe93d36331d4d36cde6185d065821df543e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-10T06:56:45.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "d4a4529ca55cfa144f5e6a3202172691d165f711bfbc3e9b011e7ff7895efe35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-05-22T12:34:58.000Z",
      "commit": "eb7aba4e116c6d0a1bc28225b02eb4257434cc34",
      "fileid": "78c51a8494d50a10c581e9e217159f748479e5f51446188dd49bbd95d0d10678",
      "status": "success",
      "buildurl": "https://github.com/r-universe/weiliang/actions/runs/25622265042"
    }
  ]
}