deepTransform: Transforms JSON DEEP output into a readable dataframe

Description Usage Arguments Value Examples

View source: R/transform_basefns.R

Description

deepTransform Reads the filetype of the Qualtrics/Limesurvey output and parses the JSON into a dataframe. Depending on the DEEP type, it sends it to the function deepSplit to create the inputs for the Hierarchical Bayes. If a specific survey question has been specified, it only transforms that part of the dataset.

Usage

1
2
deepTransform(DEEPtype, WD = getwd(), file_path, filter_by = NULL,
  collaborate = FALSE)

Arguments

DEEPtype

character string that specifies whether output is DEEP "risk" or "time".

WD

allows the user to specify a working directory. Uses the current directory if no directory is specified.

file_path

contains the file path to the Limesurvey/Qualtrics output.

filter_by

specifies the name/identifier of the question you want to isolate for analysis. This parameter is used to analyze a dataset that contains multiple DEEP outputs but is optional when analyzing a single DEEP output.

Value

a dataframe containing the parsed JSON with the Participant responses

a CSV is exported with the unshrunken parameter estimates

Examples

1
2
3
4
5
## Not run: 
deepTransform(DEEPtype = "risk", file_path = "/Documents/output.xml")
deepTransform(DEEPtype = "time", file_path = "/Documents/output.xml", filter_by = "myDEEPtimeQuestion")

## End(Not run)

ColumbiaCDS/DEEPAnalysis documentation built on June 2, 2017, 2:26 a.m.