{
  "_id": "6a1ef8b6b401979e73417e1a",
  "Package": "NPP",
  "Type": "Package",
  "Title": "Normalized Power Prior Bayesian Analysis",
  "Version": "0.7.0",
  "Authors@R": "c(person(given = \"Zifei\",\nfamily = \"Han\",\nrole = c(\"aut\", \"cre\"),\nemail = \"hanzifei1@gmail.com\"),\nperson(given = \"Qiang\",\nfamily = \"Zhang\",\nrole = \"aut\"),\nperson(given = \"Tianyu\",\nfamily = \"Bai\",\nrole = \"aut\"),\nperson(given = \"Yuyan\",\nfamily = \"Duan\",\nrole = \"aut\"),\nperson(given = \"Keying\",\nfamily = \"Ye\",\nrole = \"aut\"))",
  "Maintainer": "Zifei Han <hanzifei1@gmail.com>",
  "Description": "Posterior sampling in several commonly used distributions\nusing normalized power prior as described in Duan, Ye and Smith\n(2006) <doi:10.1002/env.752> and Ibrahim et.al. (2015)\n<doi:10.1002/sim.6728>. Sampling of the power parameter is\nachieved via either independence Metropolis-Hastings or random\nwalk Metropolis-Hastings based on transformation.",
  "License": "GPL (>= 2)",
  "LazyData": "true",
  "Encoding": "UTF-8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 05:56:43 UTC",
    "User": "root"
  },
  "Author": "Zifei Han [aut, cre], Qiang Zhang [aut], Tianyu Bai [aut],\nYuyan Duan [aut], Keying Ye [aut]",
  "Repository": "https://hanzifei.r-universe.dev",
  "Date/Publication": "2025-08-20 22:34:50 UTC",
  "RemoteUrl": "https://github.com/cran/NPP",
  "RemoteRef": "HEAD",
  "RemoteSha": "9b48aa60ec480324ee81c3870771fb7c7febf996",
  "MD5sum": "dff8a7bf33ee00779ff43b62bd021ed9",
  "_user": "hanzifei",
  "_type": "src",
  "_file": "NPP_0.7.0.tar.gz",
  "_fileid": "7634342d4d4e55793ec8a8b01ea29a47fb9cf6f2fff7a71607126fdc748071f9",
  "_filesize": 392440,
  "_sha256": "7634342d4d4e55793ec8a8b01ea29a47fb9cf6f2fff7a71607126fdc748071f9",
  "_created": "2026-05-19T05:56:43.000Z",
  "_published": "2026-06-02T15:37:26.287Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79110092008,
      "time": 118,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7075940376"
    },
    {
      "job": 79110091766,
      "time": 90,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7075934442"
    },
    {
      "job": 79110092284,
      "time": 188,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7075948285"
    },
    {
      "job": 79110092061,
      "time": 156,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7075942876"
    },
    {
      "job": 79110091564,
      "time": 145,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7075912907"
    },
    {
      "job": 79110091360,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362489293"
    },
    {
      "job": 79110092072,
      "time": 87,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7075933566"
    },
    {
      "job": 79110092445,
      "time": 70,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7075929552"
    },
    {
      "job": 79110091885,
      "time": 77,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7075931351"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/NPP",
  "_commit": {
    "id": "9b48aa60ec480324ee81c3870771fb7c7febf996",
    "author": "Zifei Han <hanzifei1@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.7.0\n",
    "time": 1755729290
  },
  "_maintainer": {
    "name": "Zifei Han",
    "email": "hanzifei1@gmail.com",
    "login": "hanzifei",
    "description": "",
    "uuid": 10103163
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "KernSmooth",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-34",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.7.0",
      "date": "2025-08-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "hanzifei",
      "count": 7,
      "uuid": 10103163
    }
  ],
  "_userbio": {
    "uuid": 10103163,
    "type": "user",
    "name": "Zifei Han"
  },
  "_downloads": {
    "count": 225,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/NPP"
  },
  "_mentions": 3,
  "_searchresults": 1,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NPP.html",
    "manual.pdf"
  ],
  "_realowner": "hanzifei",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2019-07-11"
    },
    {
      "version": "0.2.0",
      "date": "2019-08-21"
    },
    {
      "version": "0.3.0",
      "date": "2021-01-14"
    },
    {
      "version": "0.4.0",
      "date": "2021-04-23"
    },
    {
      "version": "0.5.0",
      "date": "2023-09-18"
    },
    {
      "version": "0.6.0",
      "date": "2023-12-12"
    },
    {
      "version": "0.7.0",
      "date": "2025-08-20"
    }
  ],
  "_exports": [
    "BerMNPP_MCMC1",
    "BerMNPP_MCMC2",
    "BerNPP_MCMC",
    "BerOMNPP_MCMC1",
    "BerOMNPP_MCMC2",
    "IRTNPP",
    "LaplacelogC",
    "LMMNPP_MCMC1",
    "LMMNPP_MCMC2",
    "LMNPP_MCMC",
    "LMOMNPP_MCMC1",
    "LMOMNPP_MCMC2",
    "logCdelta",
    "logCknot",
    "loglikBerD0",
    "loglikNormD0",
    "ModeDeltaBerNPP",
    "ModeDeltaLMNPP",
    "ModeDeltaMultinomialNPP",
    "ModeDeltaNormalNPP",
    "ModeDeltaPoisNPP",
    "MultinomialNPP_MCMC",
    "NormalNPP_MCMC",
    "PoiMNPP_MCMC1",
    "PoiMNPP_MCMC2",
    "PoiOMNPP_MCMC1",
    "PoiOMNPP_MCMC2",
    "PoissonNPP_MCMC"
  ],
  "_datasets": [
    {
      "name": "PHData",
      "title": "PH Data on four sites in Virginia",
      "object": "PHData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Station",
        "Data.Time",
        "PH"
      ],
      "rows": 325,
      "table": true,
      "tojson": true
    },
    {
      "name": "SPDData",
      "title": "Dataset for Diagnostic Test (PartoSure Test, Medical Device) Evaluation for Spontaneous Preterm Delivery",
      "object": "SPDData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Data.Region",
        "TPDP",
        "TPDN",
        "TNDP",
        "TNDN"
      ],
      "rows": 2,
      "table": true,
      "tojson": true
    },
    {
      "name": "VaccineData",
      "title": "Dataset of a Vaccine Trial for RotaTeq and Multiple Historical Trials for Control Group",
      "object": "VaccineData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Data.Time",
        "StudyID",
        "Group",
        "Start.Year",
        "End.Year",
        "N",
        "y"
      ],
      "rows": 6,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "BerMNPP_MCMC1",
      "title": "MCMC Sampling for Bernoulli Population with Multiple Historical Data using Normalized Power Prior",
      "topics": [
        "BerMNPP_MCMC1"
      ]
    },
    {
      "page": "BerMNPP_MCMC2",
      "title": "MCMC Sampling for Bernoulli Population of multiple historical data using Normalized Power Prior",
      "topics": [
        "BerMNPP_MCMC2"
      ]
    },
    {
      "page": "BerNPP",
      "title": "MCMC Sampling for Bernoulli Population using Normalized Power Prior",
      "topics": [
        "BerNPP_MCMC"
      ]
    },
    {
      "page": "BerOMNPP_MCMC1",
      "title": "MCMC Sampling for Bernoulli Population of multiple ordered historical data using Normalized Power Prior",
      "topics": [
        "BerOMNPP_MCMC1"
      ]
    },
    {
      "page": "BerOMNPP_MCMC2",
      "title": "MCMC Sampling for Bernoulli Population of multiple ordered historical data using Normalized Power Prior",
      "topics": [
        "BerOMNPP_MCMC2"
      ]
    },
    {
      "page": "IRTNPP",
      "title": "MCMC Sampling for IRT Model Ability Parameters using Normalized Power Prior",
      "topics": [
        "IRTNPP"
      ]
    },
    {
      "page": "LaplacelogC",
      "title": "A Function to Calculate logC(delta) Based on Laplace Approximation",
      "topics": [
        "LaplacelogC"
      ]
    },
    {
      "page": "LMMNPP_MCMC1",
      "title": "MCMC Sampling for Linear Regression Model of multiple historical data using Normalized Power Prior",
      "topics": [
        "LMMNPP_MCMC1"
      ]
    },
    {
      "page": "LMMNPP_MCMC2",
      "title": "MCMC Sampling for Linear Regression Model of multiple historical data using Normalized Power Prior",
      "topics": [
        "LMMNPP_MCMC2"
      ]
    },
    {
      "page": "LMNPP",
      "title": "MCMC Sampling for Normal Linear Model using Normalized Power Prior",
      "topics": [
        "LMNPP_MCMC"
      ]
    },
    {
      "page": "LMOMNPP_MCMC1",
      "title": "MCMC Sampling for Linear Regression Model of multiple historical data using Ordered Normalized Power Prior",
      "topics": [
        "LMOMNPP_MCMC1"
      ]
    },
    {
      "page": "LMOMNPP_MCMC2",
      "title": "MCMC Sampling for Linear Regression Model of multiple historical data using Ordered Normalized Power Prior",
      "topics": [
        "LMOMNPP_MCMC2"
      ]
    },
    {
      "page": "logCdelta",
      "title": "A Function to Interpolate logC(delta) Based on Its Values on Selected Knots",
      "topics": [
        "logCdelta"
      ]
    },
    {
      "page": "logCknot",
      "title": "A Function to Calculate logC(delta) on Selected Knots",
      "topics": [
        "logCknot"
      ]
    },
    {
      "page": "loglikBerD0",
      "title": "A Function to Calculate Log-likelihood of the Historical Data, Given Matrix-valued Parameters, for Bernoulli Population",
      "topics": [
        "loglikBerD0"
      ]
    },
    {
      "page": "loglikNormD0",
      "title": "A Function to Calculate Log-likelihood of the Historical Data, Given Array-valued Parameters, for Normal Population",
      "topics": [
        "loglikNormD0"
      ]
    },
    {
      "page": "ModeDeltaBerNPP",
      "title": "Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Bernoulli Population",
      "topics": [
        "ModeDeltaBerNPP"
      ]
    },
    {
      "page": "ModeDeltaLMNPP",
      "title": "Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Normal Linear Model",
      "topics": [
        "ModeDeltaLMNPP"
      ]
    },
    {
      "page": "ModeDeltaMultinomialNPP",
      "title": "Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Multinomial Population",
      "topics": [
        "ModeDeltaMultinomialNPP"
      ]
    },
    {
      "page": "ModeDeltaNormalNPP",
      "title": "Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Normal Population",
      "topics": [
        "ModeDeltaNormalNPP"
      ]
    },
    {
      "page": "ModeDeltaPoisNPP",
      "title": "Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Poisson Population",
      "topics": [
        "ModeDeltaPoisNPP"
      ]
    },
    {
      "page": "MultinomialNPP",
      "title": "MCMC Sampling for Multinomial Population using Normalized Power Prior",
      "topics": [
        "MultinomialNPP_MCMC"
      ]
    },
    {
      "page": "NormalNPP",
      "title": "MCMC Sampling for Normal Population using Normalized Power Prior",
      "topics": [
        "NormalNPP_MCMC"
      ]
    },
    {
      "page": "PHData",
      "title": "PH Data on four sites in Virginia",
      "topics": [
        "PHData"
      ]
    },
    {
      "page": "PoiMNPP_MCMC1",
      "title": "MCMC Sampling for Poisson Population using Normalized Power Prior with Multiple Historical Data",
      "topics": [
        "PoiMNPP_MCMC1"
      ]
    },
    {
      "page": "PoiMNPP_MCMC2",
      "title": "MCMC Sampling for Poisson Population of multiple historical data using Normalized Power Prior",
      "topics": [
        "PoiMNPP_MCMC2"
      ]
    },
    {
      "page": "PoiOMNPP_MCMC1",
      "title": "MCMC Sampling for Poisson Population of multiple ordered historical data using Normalized Power Prior",
      "topics": [
        "PoiOMNPP_MCMC1"
      ]
    },
    {
      "page": "PoiOMNPP_MCMC2",
      "title": "MCMC Sampling for Poisson Population of multiple ordered historical data using Normalized Power Prior",
      "topics": [
        "PoiOMNPP_MCMC2"
      ]
    },
    {
      "page": "PoissonNPP",
      "title": "MCMC Sampling for Bernoulli Population using Normalized Power Prior",
      "topics": [
        "PoissonNPP_MCMC"
      ]
    },
    {
      "page": "SPDData",
      "title": "Dataset for Diagnostic Test (PartoSure Test, Medical Device) Evaluation for Spontaneous Preterm Delivery",
      "topics": [
        "SPDData"
      ]
    },
    {
      "page": "VaccineData",
      "title": "Dataset of a Vaccine Trial for RotaTeq and Multiple Historical Trials for Control Group",
      "topics": [
        "VaccineData"
      ]
    }
  ],
  "_rundeps": [
    "KernSmooth",
    "MASS",
    "mvtnorm"
  ],
  "_score": 1.4771212547196624,
  "_indexed": true,
  "_nocasepkg": "npp",
  "_universes": [
    "hanzifei"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.0",
      "date": "2026-05-19T05:58:34.000Z",
      "distro": "noble",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "69eae00a054c440a111b2efebf04cce09375d3f61da48c2988558e5b5ff1f5c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.7.0",
      "date": "2026-05-19T05:58:12.000Z",
      "distro": "noble",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "447d3c9992268dfc4ec4281e99587e6fd2e62ca934de0a84c032087a8376f73f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.0",
      "date": "2026-05-19T05:59:14.000Z",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "f592e66f58cc7f6d0dea3c04c2f1542029dcefadbee9c626ba4ddb5ad4d26fe0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.7.0",
      "date": "2026-05-19T05:58:47.000Z",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "2c56bb8cf514e4e02622485b4ed59452acadba0dc72f51940e43a76e53a1cc84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.0",
      "date": "2026-05-19T05:58:01.000Z",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "5b1f4ccedf379938e72f494d56a0b15bd52e8efbe4720da685a1f848d458a652",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.7.0",
      "date": "2026-05-19T05:57:43.000Z",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "d27e2d09344a4134165d45718b2560db965b1b9c796fc65ac6222fdd5f0b4bf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.7.0",
      "date": "2026-05-19T05:57:50.000Z",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "f40a6ed4c11f3e5dc77b84791ecc027c737d01ef06d536706a85c49e834dfbd4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.7.0",
      "date": "2026-06-02T15:37:06.000Z",
      "commit": "9b48aa60ec480324ee81c3870771fb7c7febf996",
      "fileid": "ae7fc946c7c03845d7678bab7a0374fdf1b6f54796f2d32b423cb087b7c595f6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hanzifei/actions/runs/26079081300"
    }
  ]
}