All functions

append_relative_cdi_scores()

Adds a relative cdi score indicating the percentage of total achievable points the subject got on each given measure

cleanup_cdi_data()

Checks cdi data for inconsistencies, warns about them, and fixes them

connect_to_peekbank()

Connect to Peekbank

ds.add_aois()

Add AOIs to an xy dataframe

ds.get_json_fields()

Fetching the list of field names and requirements in each table according to the schema json file

ds.get_peekjson()

parse json file from peekbank github into a dataframe

ds.get_processed_data()

Download peekbank processed dataset from OSF

ds.get_raw_data()

Download specific peekbank dataset from OSF

ds.is_table_required()

Check if a certain table is required according to schema

ds.list_coding_methods()

Get the coding method list from json schema file

ds.list_ds_tables()

List the tables required based on coding method

ds.list_language_choices()

List current allowed language choices for db import

ds.map_columns()

Function for mapping raw data columns to processed table columns

ds.normalize_times()

sets the starting point of a given trial to be zero

ds.put_processed_data()

Put processed data for specific peekbank dataset on OSF

ds.resample_times()

This function resample times to be consistent across labs.

ds.rezero_times()

sets the starting point of a given trial to be zero

ds.validate_for_db_import()

check all csv files against database schema for database import

ds.validate_table()

Check if a dataframe/table is compliant to peekbank json before database import

ds.validate_trial_uniqueness_constraint()

Check if within aoi_timepoints table, there is no duplication in all the administration_ids associated with each individual trial_id

get_administrations()

Get administrations

get_aoi_region_sets()

Get AOI region sets

get_aoi_timepoints()

Get AOI timepoints

get_datasets()

Get datasets

get_db_info()

Get information on database connection options

get_sql_query()

Run a SQL Query script on the Peekbank database

get_stimuli()

Get stimuli

get_subjects()

Get subjects

get_trial_types()

Get trial types

get_trials()

Get trials

get_xy_timepoints()

Get XY timepoints

list_peekbank_tables()

List of peekbank tables

populate_cdi_percentiles()

Populate the provided cdi data with percentile values for that specific age, instrument_type, measure and language. Loosely based on the work from this repo https://github.com/kachergis/cdi-percentiles/tree/main by George Kachergis and Jess Mankewitz with advice from Virginia Marchman.

unpack_aux_data()

Unpack the json sting in the *_aux_data column and turns it into a nested R list