Skip to contents

Data Processing

Function to process survey data, including adding and inspecting variable and value labels.

dp_convert_to_labelled()
Convert a data frame to a labelled data frame using a codebook
dp_copy_codebook_template()
Copy a codebook template to a specified file path
dp_inspect_codebook()
Inspect the codebook of a labelled data frame

Exploratory Data Analysis (EDA)

Functions to perform exploratory data analysis (EDA) on survey data, including summary statistics and correlations.

eda_correlation()
Exploratory data analysis: correlation
eda_summary()
Exploratory data analysis: Summary of data

Key Driver Analysis (KDA)

Functions to perform KDA on survey data. kda_regression() is the main end-to-end function that runs the entire KDA process, while the other functions are helper functions that can be used to run specific steps of the KDA process.

kda_copy_pptx_template()
Copy PowerPoint template to specified file path
kda_forestPlot()
Create a forest plot for model coefficients
kda_importance_barPlot()
Create KDA importance bar plot
kda_importance_domir()
Perform KDA dominance analysis
kda_importance_jrw()
Calculate Importance using Johnson's Relative Weights
kda_importance_sumOfCoefficients()
Calculate feature importance using sum of coefficients
kda_interactive_workflow()
Conduct an interactive KDA workflow in the console
kda_ipma()
Importance-Performance Matrix Analysis
kda_ipma_scatterPlot()
Create an Importance-Performance Matrix Analysis scatter plot
kda_performance()
Calculate KDA performance
kda_performance_barPlot()
Create a KDA performance bar plot
kda_regression()
Conduct KDA regression analysis
kda_save_data_for_chart()
Save KDA data for chart in Excel template

YouAnalyser (YA) Utility Functions

Miscellaneous utility functions for the YouAnalyser package.

ya_choose_file()
Choose a file and return its path
ya_choose_file_path()
Choose a directory and create a file path
ya_save_plot()
Save a plot to JPEG
ya_setup_folder_structure()
Set up a standardized folder structure for a project

Example Data

Example datasets included in the YouAnalyser package.

bkw_bin
Synthetic BKW Employer Brand Positioning Study Data (Binary)
bkw_bin_outcome
BKW Employer Brand Positioning Study Data (Binary Outcome)
bkw_bin_predictors
BKW Employer Brand Positioning Study Data (Binary Predictors)
bkw_labels
BKW Employer Brand Positioning Study Data (Variable and Value Labels)
bkw_missings
Synthetic BKW Employer Brand Positioning Study Data (With Missing Values)
bkw_processed
Synthetic BKW Employer Brand Positioning Study Data (Processed)
bkw_synthetic
Synthetic BKW Employer Brand Positioning Study Data (Synthetic)
bkw_unlabelled
BKW Employer Brand Positioning Study Data (Unlabelled Data)

Other Functions

Other functions or data that do not fit into the above categories.

yougov_colors
YouGov Colors