Package: coxed 0.3.7

"Kropko, Jonathan"

coxed: Duration-Based Quantities of Interest for the Cox Proportional Hazards Model

Functions for generating, simulating, and visualizing expected durations and marginal changes in duration from the Cox proportional hazards model as described in Kropko and Harden (2017) <doi:10.1017/S000712341700045X> and Harden and Kropko (2018) <doi:10.1017/psrm.2018.19>.

Authors:Kropko, Jonathan [aut, cre], Harden, Jeffrey J. [aut]

coxed_0.3.7.tar.gz
coxed_0.3.7.zip(r-4.5)coxed_0.3.7.zip(r-4.4)coxed_0.3.7.zip(r-4.3)
coxed_0.3.7.tgz(r-4.4-any)coxed_0.3.7.tgz(r-4.3-any)
coxed_0.3.7.tar.gz(r-4.5-noble)coxed_0.3.7.tar.gz(r-4.4-noble)
coxed_0.3.7.tgz(r-4.4-emscripten)coxed_0.3.7.tgz(r-4.3-emscripten)
coxed.pdf |coxed.html
coxed/json (API)
NEWS

# Install 'coxed' in R:
install.packages('coxed', repos = c('https://jkropko.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jkropko/coxed/issues

Datasets:
  • boxsteffensmeier - Data from "A Dynamic Analysis of The Role of War Chests in Campaign Strategy" by Janet M. Box-Steffensmeier
  • martinvanberg - Data from "Wasting Time? The Impact of Ideology and Size on Delay in Coalition Formation" by Lanny W. Martin and Georg Vanberg

On CRAN:

17 exports 23 stars 2.48 score 92 dependencies 1 dependents 1 mentions 130 scripts 513 downloads

Last updated 3 years agofrom:4d43ac4b2b. Checks:ERROR: 7. Indexed: yes.

TargetResultDate
Doc / VignettesFAILAug 25 2024
R-4.5-winERRORAug 25 2024
R-4.5-linuxERRORAug 25 2024
R-4.4-winERRORAug 25 2024
R-4.4-macERRORAug 25 2024
R-4.3-winERRORJul 26 2024
R-4.3-macERRORJul 26 2024

Exports:baseline.buildbaseline.plotbcabootcov2censor.xcoxedcoxed.gamcoxed.gam.tvccoxed.npsfcoxed.npsf.tvcdata.plotgenerate.lmmake.margeffectrank.predictsim.survdatasurvsim.plotuser.baseline

Dependencies:backportsbase64encbootbslibcachemcheckmatecliclustercodetoolscolorspacecpp11data.tabledigestdplyrevaluatefansifarverfastmapfontawesomeforeignFormulafsgenericsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4lpSolvemagrittrMASSMatrixMatrixModelsmediationmemoisemgcvmimeminqamultcompmunsellmvtnormnlmenloptrnnetPermAlgopillarpkgconfigpolsplinepurrrquantregR6rappdirsRColorBrewerRcppRcppEigenrlangrmarkdownrmsrpartrstudioapisandwichsassscalesSparseMstringistringrsurvivalTH.datatibbletidyrtidyselecttinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Duration-Based Quantities of Interest and Simulation Methods for the Cox Proportional Hazards Modelcoxed-package
Generate simulated baseline hazard, cumulative hazard, survival, failure PDF, and failure CDF functionsbaseline.build
Plot the simulated baseline functionsbaseline.plot
Bias-corrected and accelerated confidence intervalsbca
Boostrapping algorithm for 'coxed'bootcov2
Data from "A Dynamic Analysis of The Role of War Chests in Campaign Strategy" by Janet M. Box-Steffensmeierboxsteffensmeier
Generate right-censoring to be dependent on the datacensor.x
Expected durations and marginal changes in expected duration from the Cox proportional hazards modelcoxed
Predict expected durations using the GAM methodcoxed.gam
Predict expected durations using the GAM method with time-varying covariatescoxed.gam.tvc
Predict expected durations using the GAM methodcoxed.npsf
Predict expected durations using the GAM method with time-varying covariatescoxed.npsf.tvc
Plot the histograms of simulated datadata.plot
Generate simulated durations using a baseline survivor function and proportional hazardsgenerate.lm
Calculating a simulated marginal effectmake.margeffect
Data from "Wasting Time? The Impact of Ideology and Size on Delay in Coalition Formation" by Lanny W. Martin and Georg Vanbergmartinvanberg
Generate predicted ranks for new observations given a new covariate profilerank.predict
Simulating duration data for the Cox proportional hazards modelsim.survdata
The mean or median expected durationsummary.coxedExpdur
Marginal changes in expected durationsummary.coxedMargin
Plot the simulated baseline functions and histograms of simulated datasurvsim.plot
Calculating baseline functions from a user-specified baseline hazard functionuser.baseline