-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
44 lines (30 loc) · 1.25 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README_figs/README-",
out.width = "100%"
)
```
**NOTE: This is a package created for experimental purposes, for the second edition of [R Packages](https://r-pkgs.org). But this can be useful for drawing various Q-Q plots to eventually inference which distribution is the best for the observed survival data. **
# survivalplotqq
<!-- badges: start -->
<!-- badges: end -->
The goal of survivalplotqq is to draw Q-Q plots with 8 different distribution for the observed survival data. (Complete cases only) This can be very helpful to find exact distribution for the observed data. Weibull, Log-Normal, Gompertz, Gumbel, Normal, Laplace, Pareto and Exponential distribution are used as candidate distributions.
## Installation
``` r
devtools::install_github("givitallugot/survivalplotqq")
```
## Example
This is a basic example which shows you how to draw survival Q-Q plot:
```{r example}
library(survivalplotqq)
loco$lnmiles <- log(loco$miles)
data <- loco[loco$tag == 1,] # Use only complete cases
colnames(data) <- c('x', 'tag', 'lnx')
plotqq.survival(data)
```