Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/cran/rstpm2
24 November 2025, 04:36:46 UTC
  • Code
  • Branches (29)
  • Releases (0)
  • Visits
Revision 60cb1961fe963ebecfed7d8c6ac31410f17e1997 authored by Mark Clements on 19 August 2024, 13:40:02 UTC, committed by cran-robot on 20 August 2024, 02:54:00 UTC
version 1.6.4
1 parent a7579fe
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/tags/1.2.2
    • refs/tags/1.3.1
    • refs/tags/1.3.2
    • refs/tags/1.3.4
    • refs/tags/1.4.0
    • refs/tags/1.4.1
    • refs/tags/1.4.2
    • refs/tags/1.4.4
    • refs/tags/1.4.5
    • refs/tags/1.5.0
    • refs/tags/1.5.1
    • refs/tags/1.5.2
    • refs/tags/1.5.5
    • refs/tags/1.5.6
    • refs/tags/1.5.7
    • refs/tags/1.5.8
    • refs/tags/1.5.9
    • refs/tags/1.6.1
    • refs/tags/1.6.2
    • refs/tags/1.6.3
    • refs/tags/1.6.4
    • refs/tags/1.6.5
    • refs/tags/1.6.6
    • refs/tags/1.6.6.1
    • refs/tags/1.6.7
    • refs/tags/1.6.9
    • refs/tags/1.7.0
    • refs/tags/1.7.1
    • 60cb1961fe963ebecfed7d8c6ac31410f17e1997
    No releases to show
  • 4801f27
  • /
  • NEWS.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
  • snapshot
origin badgerevision badge
swh:1:rev:60cb1961fe963ebecfed7d8c6ac31410f17e1997
origin badgedirectory badge
swh:1:dir:4801f2758332e8f34e0247998f3522491664ca08
origin badgecontent badge
swh:1:cnt:345930e9f7e593f1db54d3576ea729410da27200
origin badgesnapshot badge
swh:1:snp:3f38ebb057175cccdf64871049d1dcd24f623acb

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 60cb1961fe963ebecfed7d8c6ac31410f17e1997 authored by Mark Clements on 19 August 2024, 13:40:02 UTC
version 1.6.4
Tip revision: 60cb196
NEWS.md
# rstpm2

# Version 1.6.1
    - Experimental: aft\_mixture and aft\_integrated regression models

# Version 1.5.9
    - Bug fix: predict(..., type="meanhr") and type="meanhaz"

# Version 1.5.2
    - Add Clayton copulas with arbitrary cluster sizes to the
      parametric GSMs (experimental)
	- Add spline interpolation support in the Markov models (faster
      for some models)

# Version 1.5.1
    - Bug fix: mean predictions

# Version 1.5.0
	- Major change: markov_msm function for Markov multistate models
	- Add predict(..., type="lpmatrix")
	- Add cluster and bhazard specials
	- Internal: use Nelder-Mead for AFT if the model did not converge
	- Internal: refactor stpm2 and pstpm2 to use a common gsm function
	- Internal: extended the test suite
	- Documentation: update vuniroot vignette
	- Bug fixes: delayed entry; missing bhazard and cluster values; 

# Version 1.4.5
    - Fixed a bug in fitting frailty models (introduced in 1.4.4)
	- Introduced package tests
	
# Version 1.4.4
    - Fixed a critical bug in the `predict` function for comparisons of hazards, including type="hr", type="hdiff" and type="marghr" (introduced in 1.4.2).

# Version 1.4.2
    - Belatedly started the NEWS.md file
    - Update to bbmle (>= 1.0.20) required due to new export from that package
    - Possible breaking change: for the `predict()` functions for `stpm2` and `pstpm2`, the `keep.attributes` default has changed from `TRUE` to `FALSE`. Any code that used `predict()` and needs the `newdata` attributes should now add the `keep.attributes=TRUE` argument. The previous default was noisy.
	- Possible breaking change: the derivative of the design matrix with respect to time now defaults to being calculated using log(time); the old calculation can be found using `log.time.transform=TRUE`. This is expected to provide more accurate gradients, particularly for very small times. 
    - To this point, the following models are available: 
      + `stpm2`: parametric generalised survival models, possibly with clustered data (Gamma frailties and normal random effects), relative survival, robust standard errors, rich post-estimation and plots.
      + `pstpm2`: penalised generalised survival models, possibly with clustered data (Gamma frailties and normal random effects), relative survival, robust standard errors, rich post-estimation and plots.
      + `aft`: parametric accelerated failure time models, with more limited post-estimation and plots.
	- Links for the generalised survival models include log-log, -logit, -probit, -log and Aranda-Ordaz.
    - Post-estimation for `stpm2` and `pstpm2` includes:
	  + Conditional survival ("surv"), linear predictor ("link"), cumulative hazard ("cumhaz"), hazard ("hazard"), log hazard ("loghazard"), probability density function ("density"), failure ("fail"), hazard ratio ("hr"), survival difference ("sdiff"), hazard difference ("hdiff"), mean survival ("meansurv"), mean survival differences ("meansurvdiff"), mean hazard ratio ("meanhr"), odds ("odds"), odds ratio ("or"), restricted mean survival time ("rmst"), attributable fractions ("af")
	  + Marginal survival ("margsurv"), marginal hazard ("marghaz"), attributable fractions ("af"), mean survival ("meanmargsurv")
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API