Modular Functions for joint mean covariance model fits

1 2 3 4 5 6 7 | ```
ldFormula(formula, data = NULL, triple = c(3, 3, 3), cov.method = c("mcd",
"acd", "hpc"), optim.method = c("default", "BFGS"),
control = jmcmControl(), start = NULL)
optimizeJmcm(m, Y, X, Z, W, time, cov.method, optim.method, control, start)
mkJmcmMod(opt, args, triple, cov.method, optim.method, mc)
``` |

`formula` |
a two-sided linear formula object describing the covariates for both the mean and covariance matrix part of the model, with the response, the corresponding subject id and measurement time on the left of a operator~, divided by vertical bars ("|"). |

`data` |
a data frame containing the variables named in formula. |

`triple` |
an integer vector of length three containing the degrees of the three polynomial functions for the mean structure, the log innovation -variances and the autoregressive or moving average coefficients when 'mcd' or 'acd' is specified for cov.method. It refers to the degree for the mean structure, variances and angles when 'hpc' is specified for cov.method. |

`cov.method` |
covariance structure modelling method, choose 'mcd' (Pourahmadi 1999), 'acd' (Chen and Dunson 2013) or 'hpc' (Zhang et al. 2015). |

`optim.method` |
optimization method, choose 'default' or 'BFGS' (vmmin in R) |

`control` |
a list (of correct class, resulting from jmcmControl()) containing control parameters, see the *jmcmControl documentation for details. |

`start` |
starting values for the parameters in the model. |

`m` |
an integer vector of number of measurements for each subject. |

`Y` |
a vector of responses for all subjects. |

`X` |
model matrix for mean structure model. |

`Z` |
model matrix for the diagonal matrix. |

`W` |
model matrix for the lower triangular matrix. |

`time` |
a vector of time from the data. |

`opt` |
optimized results returned by optimizeJmcm. |

`args` |
arguments returned by ldFormula. |

`mc` |
matched call from the calling function. |

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.