Description Usage Arguments Value Examples
View source: R/plot_cmfactorfit.R
Plot cmfactorfit objects
1 2 |
x |
a cmfactorfit object |
fit |
a character (either "null", "alt", or "both") that dictates what fits will be plotted |
colors |
vector of colors (one component for each individual fit being plotted) for the hazard estimates |
legend |
boolean parameter dictating whether or not a legend will be added to the plot |
... |
additional parameters to pass to the |
a plot comparing the hazard estimates from the null model with the individual estimates from each factor level
1 2 3 4 5 6 7 | # fit factorial model
data(seasonalsex)
seasonalsex.factorfit <- factorfit_cyclomort(event ~ sex, data = seasonalsex, n.seasons = 1)
# summary
summary(seasonalsex.factorfit, coefs = TRUE)
plot(seasonalsex.factorfit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.