Learn R Programming

⚠️There's a newer version (1.7.12) of this package.Take me there.

stpm (version 1.2.1)

Stochastic Process Model for Analysis of Longitudinal and Time-to-Event Outcomes

Description

Utilities to estimate parameters of the models with survival functions induced by stochastic covariates. Miscellaneous functions for data preparation and simulation are also provided. For more information, see: (i) "Life tables with covariates: Dynamic model for nonlinear analysis of longitudinal data" by Akushevich, I. et al. (2005), Mathematical Population Studies 12(2), 51(80), ; (ii) "Stochastic model for analysis of longitudinal data on aging and mortality" by Yashin A. et al. (2007), Mathematical Biosciences, 208(2), 538-551, ; (iii) "Health decline, aging and mortality: how are they related?" by Yashin A. et al. (2007), Biogerontology 8(3), 291(302), .

Copy Link

Version

Install

install.packages('stpm')

Monthly Downloads

202

Version

1.2.1

License

GPL

Maintainer

Ilya Y Zhbannikov

Last Published

April 11th, 2016

Functions in stpm (1.2.1)

prepare_data_cont

Prepares continuouts-time dataset.
spm_time_dep

spm_time_dep : a function that estimates parameters from the model with time-dependent coefficients.
stpm

Stochastic Process Model for Analysis of Longitudinal and Time-to-Event Outcomes
simdata_cont2

Multi-dimensional simulation function for continuous trait. Similar to simdata_cont(...) but much faster.
prepare_data

Data pre-processing for analysis with stochastic process model methodology.
prepare_data_discr

Prepares discrete-time dataset.
trim

Returns string w/o leading or trailing whitespace
trim.trailing

Returns string w/o trailing whitespace
optimize

A sub-finction that corresponds to the spm_time_dep(...)
simdata_cont

Multi-dimensional simulation function for continuous trait.
simdata_gen

Multi-dimension simulation function for Genetic SPM (multidimensional GenSPM)
simdata_time_dep

Simulation function for continuous trait with time-dependant coefficients.
spm

A central function that estimates Stochastic Process Model parameters a from given dataset.
longdat

This is the longitudinal dataset.
spm_discrete

Discrete multi-dimensional optimization
simdata_discr

Multi-dimension simulation function
spm_gen

Continuous multi-dimensional optimization for Genetic SPM (multidimensional GenSPM)
fill_last

Filling the last cell
setub

Sets upper boundaries.
spm_continuous

Continuous multi-dimensional optimization
trim.leading

Returns string w/o leading whitespace
vitstat

Vital (mortality) statistics.
setlb

Sets lower boundaries.
spm_projection

A data projection with previously estimated or user-defined parameters. Projections are constructed for a cohort with fixed or normally distributed initial covariates.