Summary Statistics Functions

Functions that summarize dataframes

ff_summ_allvars_bygroup()

Summarize one variable in a dataset, by another categorical variable

ff_summ_bygroup()

Summarize one variable in a dataset, by another categorical variable

ff_summ_count_unique_by_groups()

By Multiple Groups, Count the Number of Unique Observations (Individuals) within Group

ff_summ_percentiles()

Summarize each variable in a dataset

Distributional Functions

Functions that compute distributional related outcomes

ff_dist_gini_random_var()

Compute gini coefficient between 0 (equality) and 1 based on a discrete random variable.

ff_dist_gini_vector_pos()

Compute gini coefficient between 0 (equality) and (n-1)/(n+1) (inequality) where n is vector length.

ff_dist_integrate_normal()

Trapezoidal rule style discretized normal random variable.

Panel Data Function

Functions that process dataframes with panel characteristics

ff_panel_cumsum_grouplast()

Cumulative stat value from each group from the latest date of availability. Sum or Average

ff_panel_expand_longandwide()

Append Group Mean Lagged Values as Additional Panel Variables

ff_panel_expand_longrosterwide()

long Panel Record Date of Attendance each ID, Expand to Wide of Cumulative Attendance by Dates

Optimization Functions

Functions that optimize to minimize, maximize, etc

ff_opti_bisect_pmap_multi()

Dataframe rows are individuals, find root for each individual, given cts diff monotonic function with root.

Testing Data

Testing datasets

df_hgt_wgt

Test Dataset Panel Height and Weight, Guatemala and Philippines, scrambled data, not actual.

Utility Tools

Support tools for basic variable operations, packaging etc.

ff_sup_clean_mlx()

Convert mlx files to tex and pdf

ff_sup_clean_rmd()

This function cleans rmd: creates subfolder with pdf, html and R

ff_sup_clean_rmd_mod()

Modify R4Econ (and others) Rmd files, add Numbered Sections for HTML, and higher Hierarchy

ff_sup_git_status_check()

Check if local file is different from git version on windows

ff_sup_lower_hierarchy()

Increase the RMD Hierarchy of Existing Files

ff_sup_lst2str()

This function converts a list of strings to a single string for easier printing

ff_sup_rmd2htmlpdfr()

Searchs for Rmd Files in several folders, render to HTML or PDF in another folder