How tbaghfalaki/inla-jm-of-zi-event-time works
This repository provides R and BUGS implementations for joint zero-inflated count and event-time modeling. Its workflow covers simulated-data generation, model fitting with INLA or OpenBUGS, and plotting estimated curves; it also includes analyses for pregnancy and HIV data. The README documents these capabilities, but no source excerpts were provided, so links are limited to relationships described there and to clear filename matches. The contents and exact use of the archived data files are not shown.
Main entry points: data_simulation_ZINB.R Simulate ZINB · data_simulation_ZIP.R Simulate ZIP · INLA-zinb.R INLA ZINB · INLA-zip.R INLA ZIP
Components 18
Simulation
- Simulate ZINB
data_simulation_ZINB.R - Simulate ZIP
data_simulation_ZIP.R
INLA fitting
- INLA ZINB
INLA-zinb.R - INLA ZIP
INLA-zip.R - INLA ZINB PL spline
INLA-ZINB-PL-B-spline.R - INLA ZINB PL basis
INLA-ZINB-PL-truncated power basis.R - INLA ZIP PL spline
INLA-ZIP-PL-B-spline.R - INLA ZIP PL basis
INLA-ZIP-PL-truncated power basis.R
OpenBUGS fitting
- OpenBUGS ZINB
OpenBUGS-zinb.R - OpenBUGS ZIP
OpenBUGS-zip.R
Data and plots
- ZINB data
simulated_data_ZINB.txt - ZINB PL data
simulated_data_ZINB_PL.txt - ZIP data
simulated_data_ZIP.txt - ZIP PL data
simulated_data_ZIP_PL.txt - Pregnancy data
Pregnancy Data.rar - HIV data
HIV Data.rar - Estimated curve plot
Plot of output.R
Other components
- Analyst
Connections 17
- Analyst → Simulate ZINB: runs
README.md - Analyst → Simulate ZIP: runs
README.md - Simulate ZINB → ZINB data: generates
README.md - Simulate ZINB → ZINB PL data: generates
README.md - Simulate ZIP → ZIP data: generates
README.md - Simulate ZIP → ZIP PL data: generates
README.md - Analyst → INLA ZINB: fits model
README.md - Analyst → INLA ZIP: fits model
README.md - Analyst → INLA ZINB PL spline: fits model
README.md - Analyst → INLA ZINB PL basis: fits model
README.md - Analyst → INLA ZIP PL spline: fits model
README.md - Analyst → INLA ZIP PL basis: fits model
README.md - Analyst → OpenBUGS ZINB: fits model
README.md - Analyst → OpenBUGS ZIP: fits model
README.md - Analyst → Pregnancy data: analyzes
README.md - Analyst → HIV data: analyzes
README.md - Analyst → Estimated curve plot: draws curve
README.md