Package: expard 1.1.0
expard: Drug 'EXPosures' and 'ADRs'
An R package for fitting complex drug exposure and adverse drug reaction ('ADR') relationships. It can additionally be used to simulate electronic healthcare record ('EHR') data of patients observed across multiple timepoints.
Authors:
expard_1.1.0.tar.gz
expard_1.1.0.zip(r-4.7)expard_1.1.0.zip(r-4.6)expard_1.1.0.zip(r-4.5)
expard_1.1.0.tgz(r-4.6-any)expard_1.1.0.tgz(r-4.5-any)
expard_1.1.0.tar.gz(r-4.7-any)expard_1.1.0.tar.gz(r-4.6-any)
expard_1.1.0.tgz(r-4.6-emscripten)
|manual.html✨
card.svg |card.png
expard/json (API)
NEWS
| # Install 'expard' in R: |
| install.packages('expard', repos = c('https://bips-hb.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/bips-hb/expard/issues
Last updated from:0394132bd6. Checks:8 OK, 1 ERROR. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 129 | ||
| source / vignettes | ERROR | 179 | ||
| linux-release-x86_64 | OK | 163 | ||
| macos-release-arm64 | OK | 118 | ||
| macos-oldrel-arm64 | OK | 92 | ||
| windows-devel | OK | 95 | ||
| windows-release | OK | 102 | ||
| windows-oldrel | OK | 83 | ||
| wasm-release | OK | 95 |
Exports:apply_function_to_observed_timepointscreate2x2tablecreate2x2tablesdetermine_first_prescriptiondetermine_frequency_unique_valuesfit_all_modelsfit_modelgenerate_adr_historygenerate_cohortgenerate_drug_ADR_pairgenerate_drug_historygenerate_patientloglikelihoodloglikelihood_decayingloglikelihood_delayedloglikelihood_delayed_decayingloglikelihood_long_termloglikelihood_pastloglikelihood_withdrawalplot_fitplot_riskrisk_model_current_userisk_model_decayingrisk_model_delayedrisk_model_delayed_decayingrisk_model_durationrisk_model_long_termrisk_model_no_associationrisk_model_pastrisk_model_withdrawal
Dependencies:clicpp11crayondplyrfarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMatrixpillarpkgconfigR6RColorBrewerrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Apply Function to Subset Drug History | apply_function_to_observed_timepoints |
| Creating a 2 \times 2 Table | create2x2table |
| 2 \times 2 Tables | create2x2tables |
| First Prescription | determine_first_prescription |
| Compute Frequency Table | determine_frequency_unique_values |
| Fit a Model to Cohort Data | fit_all_models fit_model |
| Returns ADR History | generate_adr_history |
| Generate a Cohort | generate_cohort |
| Generate a Drug-ADR pair | generate_drug_ADR_pair |
| Generate Drug Prescription History | generate_drug_history |
| Generate a Patient | generate_patient |
| Negative of the Log-Likelihood Function | loglikelihood loglikelihood_decaying loglikelihood_delayed loglikelihood_delayed_decaying loglikelihood_long_term loglikelihood_past loglikelihood_withdrawal |
| Plot the Fit | plot_fit |
| Plot Risk | plot_risk |
| Print function for 'generate_cohort' | print.cohort |
| Print function for 2x2 tables | print.cont_table |
| Function for printing a drug-ADR pair | print.drug_ADR_pair |
| Print function for the hccd fit_model | print.expardfit2 |
| Function for printing a patient | print.patient |
| Risk Model 'No Association' | risk_model_current_use risk_model_decaying risk_model_delayed risk_model_delayed_decaying risk_model_duration risk_model_long_term risk_model_no_association risk_model_past risk_model_withdrawal |
