-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
62 lines (46 loc) · 1.53 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
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 = "man/figures/README-",
out.width = "100%"
)
```
# pcqolutilities <a href="https://github.com/jrob95/pcqolutilities"><img src="man/figures/logo.png" align="right" height="120" alt="pcqolutilities logo" /></a>
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![R-CMD-check](https://github.com/jrob95/pcqolutilities/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jrob95/pcqolutilities/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
The goal of pcqolutilities is to facilitate the easy estimation of health utilities for the PC-QoL
## Installation
You can install the development version of pcqolutilities from [GitHub](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("jrob95/pcqolutilities")
```
## Example
You might have a data frame with columns named ready for the package
```{r}
library(pcqolutilities)
# with a simple data frame
pcqol_utilities(pcqol_raw)
```
Or maybe you need to specify which columns match the PC-QoL items
```{r}
library(pcqolutilities)
# a data frame with non-standard column names
pcqol_utilities(pcqol_raw2,
colnames = c(
upset = "ups",
scare = "sca",
overp = "ove",
leave = "lwo",
leada = "lnl",
awake = "awa"
)
)
```