R/VWPre.R

#' VWPre: Tools for Preprocessing Visual World Data.
#'
#' The VWPre package provides a set of functions for preparing Visual World data 
#' collected with SR Research Eyelink eye trackers.
#' 
#' @section Formatting functions:
#' \itemize{
#'   \item The function \code{\link{create_time_series}} returns a time columns 
#'   in milliseconds.
#'   \item The function \code{\link{prep_data}} returns a data table with 
#'   correctly assigned classes for important columns.
#'   \item The function \code{\link{relabel_na}} returns a data table with
#'   samples containing 'NA' relabeled as outside any interest area.
#'   \item The function \code{\link{recode_ia}} returns a data table containing
#'   recoded interest area IDs and/or interest area labels.
#'   \item The function \code{\link{select_recorded_eye}} returns a data table 
#'   with data from the the recorded eye in new columns (IA_ID and IA_LABEL).
#'   \item The function \code{\link{custom_ia}} returns a data table 
#'   with gaze data remapped to new interest areas.
#'   \item The function \code{\link{align_msg}} returns a data table 
#'   with newly aligned sample data in a new column (Align).
#'   \item The function \code{\link{rm_extra_DVcols}} removed DataViewer coumns
#'   that are not necessary for preprocessing with this package.
#' }
#' 
#' @section Calculation functions:
#' \itemize{
#'   \item The function \code{\link{bin_prop}} returns a downsampled data table
#'   containing proportion of looks (samples) to each interest area in a 
#'   particular window of time (bin size). 
#'   \item The function \code{\link{transform_to_elogit}} returns a data table 
#'   with proportion looks transformed to empirical logits with weights.
#'   \item The function \code{\link{create_binomial}} returns a data table with
#'   a new success/failure column for each IA which is suitable for logistic 
#'   regression. 
#' }
#' 
#' @section Trackloss functions:
#' \itemize{
#'   \item The function \code{\link{mark_trackloss}} returns a data table
#'   with data information regarding trackloss of the sample. 
#'   \item The function \code{\link{rm_trackloss_events}} returns a data table 
#'   from which events without the minimum amount of quality data have been
#'   removed.
#' }
#' 
#' @section Fasttrack formatting function:
#' \itemize{
#'   \item The function \code{\link{fasttrack}} a meta-function that returns a 
#'   data table of processed data containing the result of the series of 
#'   necessary subroutines. This is intended for experienced users doing basic
#'   preprocessing.
#' }
#' 
#' @section Data-checking functions:
#' \itemize{
#'   \item The function \code{\link{check_eye_recording}} returns a summary 
#'   of whether or not the dataset contains gaze data in both the Right and 
#'   Left interest area columns.  
#'   \item The function \code{\link{check_time_series}} returns the first value 
#'   in the Time column for each event. 
#'   \item The function \code{\link{check_samples_per_bin}} returns the number 
#'   of samples in each bin.
#'   \item The function \code{\link{check_samplingrate}} returns the value 
#'   corresponding to the sampling rate in the data. 
#'   \item The function \code{\link{ds_options}} returns the binning 
#'   (downsampling) options possible for the given sampling rate.
#'   \item The function \code{\link{check_ia}} returns a summary of the 
#'   interest area IDs and Labels present in the data.
#'   \item The function \code{\link{check_msg_time}} returns a summary of the 
#'   the time value at a given sample message for each recording event.
#'   \item The function \code{\link{check_all_msgs}} returns all messages
#'   in the data and their time stamp.
#' }
#' 
#' @section Plotting functions:
#' \itemize{
#'   \item The function \code{\link{plot_avg}} returns a plot of the grand 
#'   or conditional averages of proportion (or empirical logit) looks to each 
#'   interest area along with error bars.
#'   \item The function \code{\link{plot_avg_contour}} returns a contour plot of 
#'   the conditional average of proportion (or empirical logit) looks to a 
#'   given interest area over Time and a specified continuous variable. 
#'   \item The function \code{\link{plot_avg_diff}} returns a plot of the grand 
#'   or conditional averages of the difference between looks to two interest 
#'   areas (proportions or empirical logits) with error bars.
#'   \item The function \code{\link{plot_avg_cdiff}} returns a plot of the 
#'   average difference between two conditions for looks to a given interest 
#'   area (proportions or empirical logits) with error bars.
#'   \item The function \code{\link{make_pelogit_fnc}} returns a function 
#'   that can backtransform predicted empirical logit to probability scale, 
#'   particularly (though not exclusively) useful for plotting purposes. 
#' }
#' 
#' @section Interactive functions:
#' \itemize{ 
#'   \item The function \code{\link{plot_transformation_app}} opens a Shiny app 
#'   for visualizing the effect of both number of observations and constant on 
#'   the results of the empirical logit transformation and weight calculations.
#'   \item The function \code{\link{plot_indiv_app}} opens a Shiny app for
#'   inspecting by-subject or by-item averages for all interest areas, alongside
#'   the grand average (for proportion or empirical logit looks) within a 
#'   specified time window. 
#'   \item The function \code{\link{plot_var_app}} opens a Shiny app for
#'   inspecting by-subject or by-item Z-scores with respect to the overall mean
#'   for a given interest area within a specified time window.
#' }
#' 
#' @section Notes:
#' \itemize{
#' \item The vignettes are available via \code{browseVignettes(package = "VWPre")}. 
#' \item A list of all available functions is provided in 
#' \code{help(package = "VWPre")}.
#' \item This package can be cited using the information obtained from 
#' \code{citation("VWPre") or print(citation("VWPre"), bibtex = TRUE)} 
#' }
#'
#' @author
#' Vincent Porretta, Aki-Juhani Kyröläinen, Jacolien van Rij, Juhani Järvikivi
#'
#' Maintainer: Vincent Porretta (\email{vincentporretta@@gmail.com})
#'
#' University of Windsor, Canada
#' 
#' @docType package
#' @name VWPre
NULL

Try the VWPre package in your browser

Any scripts or data that you put into this service are public.

VWPre documentation built on Nov. 30, 2020, 1:08 a.m.