Giter Site home page Giter Site logo

vfq-ui_scoring_code's Introduction

title author date output
README
September 13, 2019
html_document

Purpose

This code generates vision-derived health utility index scores from the 25-item National Eye Institute Visual Function Questionnaire (NEI-VFQ-25), given a .csv file containing the raw NEI-VFQ-25 data, date of birth, and date of survey administration. Output is sent to .csv.

Setup

To use this code, modify the included rawVFQdata.csv file to reflect the raw NEI-VFQ-25 data, including date of birth (column name dob) and date of data collection (column name neivfq_date).

Note that only nine columns are needed to run this code:

Column Name Description
record_id Unique identifier; not needed for scoring but recommended to keep for subject tracking purposes
neivfq_date Date of data collection
dob Date of birth
vfq25_q6 NEI-VFQ-25 subitem 6
vfq25_q11 NEI-VFQ-25 subitem 11
vfq25_q14 NEI-VFQ-25 subitem 14
vfq25_q18 NEI-VFQ-25 subitem 18
vfq25_q20 NEI-VFQ-25 subitem 20
vfq25_q25 NEI-VFQ-25 subitem 25

To streamline scoring, you may omit all other columns if desired.

Running the Code

Running the code is straightforward. The packages needed must be installed on your system to run this code. If you don't already have these packages, you can install them via:

install.packages(c("here", "tidyverse", "lubridate"))

These packages are used for the following:

  • here: for nonstatic filepaths
  • tidyverse: for data import/export and wrangling
  • lubridate: for date manipulation

The code selects the nine columns of interest, assesses whether each row is scorable (i.e., whether the data is complete), retains those that are scorable, recodes the VFQ subitems, computes theta scores, and calculates utility scores. The mechanics of recoding and the computations are derived from the Rentz et al supplement (see References below)

Output

The program outputs the retained columns, recoded columns, calculated columns (including age and theta scores), and utilities (VFQ_UI) to .csv. An example output file is included as VFQ-UI_scored.csv. The underlying dataframe remains in your global environment if you want to use it in subsequent calculations.

Disclaimer

For HIPAA and human subjects protection reasons, the data provided in the example rawVFQdata.csv file is dummy data and does not represent real subject responses.

The scoring code presented herein is derived from the Rentz et al supplemental online content, Appendix C.

vfq-ui_scoring_code's People

Contributors

kmprioliprof avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.