-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
52 lines (37 loc) · 1.48 KB
/
README.Rmd
File metadata and controls
52 lines (37 loc) · 1.48 KB
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
---
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%"
)
```
# eq5d.plus
<!-- badges: start -->
<!-- badges: end -->
The goal of eq5d.plus is to run linear models on EQ-5D quality of life data that uses both the score and visual analogue scale (VAS).
## Installation
You can install the released version of eq5d.plus from [GitHub](https://github.com/) with:
```r
# use the devtools library
library(devtools)
# Install the latest version from GitHub:
install_github("agbarnett/lmvas")
```
Note that the `INLA` library also has to be installed from [GitHub](https://github.com/inbo/INLA).
## Example
This example runs a linear model with independent variables of age and sex:
```{r example}
library(eq5d.plus)
## example using the Spanish osteoarthritis data
model = lmvas(vas_name='EQ5D_VAS', eq_name='EQ5D', independent_vars = c('age','sex'), data=arthritis)
summary(model)
```
The results show a reduced intercept for the VAS compared with the score of `r round(model$summary.fixed$mean[2]*1000)/1000`.
Quality of life is lower on average for women and for older respondents.
The score and VAS are positively correlated with an estimated correlation of `r round(model$summary.hyperpar$mean[4]*1000)/1000` ("rho" estimate in model hyperparameters).
The model may take a short while to run for very large data sets.