Description Usage Arguments Value Author(s) References See Also Examples

View source: R/initiate.startValues_AFT.R

The function initiates starting values for a single chain for accelrated failture time (AFT) models. Users are allowed to set some non-null values to starting values for a set of parameters. The function will automatically generate starting values for any parameters whose values are not specified.

1 2 3 4 5 6 7 8 9 10 | ```
initiate.startValues_AFT(Formula, data, model, nChain=1,
beta1=NULL, beta2=NULL, beta3=NULL, beta=NULL,
gamma=NULL, theta=NULL,
y1=NULL, y2=NULL, y=NULL,
LN.mu=NULL, LN.sigSq=NULL,
DPM.class1=NULL, DPM.class2=NULL, DPM.class3=NULL,
DPM.class=NULL, DPM.mu1=NULL, DPM.mu2=NULL,
DPM.mu3=NULL, DPM.mu=NULL, DPM.zeta1=NULL,
DPM.zeta2=NULL, DPM.zeta3=NULL, DPM.zeta=NULL,
DPM.tau=NULL)
``` |

`Formula` |
For |

`data` |
a data.frame in which to interpret the variables named in the formula(s) in |

`model` |
a character vector that specifies the type of components in a model. Check |

`nChain` |
The number of chains. |

`beta1` |
starting values of |

`beta2` |
starting values of |

`beta3` |
starting values of |

`beta` |
starting values of |

`gamma` |
starting values of |

`theta` |
starting values of |

`y1` |
starting values of |

`y2` |
starting values of |

`y` |
starting values of |

`LN.mu` |
starting values of |

`LN.sigSq` |
starting values of |

`DPM.class1` |
starting values of the class membership for transition 1 in DPM models for |

`DPM.class2` |
starting values of the class membership for transition 2 in DPM models for |

`DPM.class3` |
starting values of the class membership for transition 3 in DPM models for |

`DPM.class` |
starting values of the class membership in DPM models for |

`DPM.mu1` |
starting values of |

`DPM.mu2` |
starting values of |

`DPM.mu3` |
starting values of |

`DPM.mu` |
starting values of |

`DPM.zeta1` |
starting values of |

`DPM.zeta2` |
starting values of |

`DPM.zeta3` |
starting values of |

`DPM.zeta` |
starting values of |

`DPM.tau` |
starting values of |

`initiate.startValues_AFT`

returns a list containing starting values for a sigle chain that can be used for `BayesID_AFT`

and `BayesSurv_AFT`

.

Sebastien Haneuse and Kyu Ha Lee

Maintainer: Kyu Ha Lee <[email protected]>

Lee, K. H., Rondeau, V., and Haneuse, S. (2017),
Accelerated failure time models for semicompeting risks data in the presence of complex censoring, *Biometrics*, 73, 4, 1401-1412.

Alvares, D., Haneuse, S., Lee, C., Lee, K. H. (2018+),
SemiCompRisks: an R package for independent and cluster-correlated analyses of semi-competing risks data, *submitted*, arXiv:1801.03567.

1 | ```
## See Examples in \code{\link{BayesID_AFT}} and \code{\link{BayesSurv_AFT}}.
``` |

SemiCompRisks documentation built on May 7, 2018, 9:04 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.