Description Usage Arguments Examples

Create a list of data for parameter estimation (cooking dynr) using `dynr.cook`

1 |

`dataframe` |
either a “ts” class object of time series data for a single subject or a data frame object of data for potentially multiple subjects that contain a column of subject ID numbers (i.e., an ID variable), a column indicating subject-specific measurement occasions (i.e., a TIME variable), at least one column of observed values, and any number of covariates. If the data are fit to a discrete-time model, the TIME variable should contain subject-specific sequences of (subsets of) consecutively equally spaced numbers (e.g, 1, 2, 3, ...). That is, the program assumes that the input data.frame is equally spaced with potential missingness. If the measurement occasions for a subject are a subset of an arithmetic sequence but are not consecutive, NAs will be inserted automatically to create an equally spaced data set before estimation. If the data are fit to a continuous-time model, the TIME varibles can contain subject-specific increasing sequences of irregularly spaced real numbers. Missing values in the observed variables shoud be indicated by NA. Missing values in covariates are not allowed. That is, missing values in the covariates, if there are any, should be imputed first. |

`id` |
a character string of the name of the ID variable in the data. Optional for a “ts” class object. |

`time` |
a character string of the name of the TIME variable in the data. Optional for a “ts” class object. |

`observed` |
a vector of character strings of the names of the observed variables in the data. Optional for a “ts” class object. |

`covariates` |
(optional) a vector of character strings of the names of the covariates in the data, which can be missing. |

1 2 3 4 5 |

dynr documentation built on Sept. 25, 2018, 9:05 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.