Facilitates access to the Comparative Legislators Database (CLD). The CLD includes political, sociodemographic, career, online presence, public attention, and visual information for over 67,000 contemporary and historical politicians from 16 countries.

Constructs genotype x environment interaction (GxE) models where
    G is a weighted sum of genetic variants (genetic score) and E is a weighted
    sum of environments (environmental score) using the alternating optimization algorithm 
    by Jolicoeur-Martineau et al. (2017) <arXiv:1703.08111>. This approach has greatly 
    enhanced predictive power over traditional GxE models which include only a single 
    genetic variant and a single environmental exposure. Although this approach was 
    originally made for GxE modelling, it is flexible and does not require the use of 
    genetic and environmental variables. It can also handle more than 2 latent variables 
    (rather than just G and E) and 3-way interactions or more. The LEGIT model produces 
    highly interpretable results and is very parameter-efficient thus it can even be 
    used with small sample sizes (n < 250). Tools to determine the type of interaction
    (vantage sensitivity, diathesis-stress or differential susceptibility), with any 
    number of genetic variants or environments, are available <arXiv:1712.04058>. The 
    software can now produce mixed-effects LEGIT models through the lme4 package.

Provides a dataset containing several color naming conventions established by multiple sources, along with associated color metadata.
    The package also provides related helper functions for mapping among the different Lego color naming conventions and between Lego colors, hex colors, and 'R' color names, 
    making it easy to convert any color palette to one based on existing Lego colors while keeping as close to the original color palette as possible.
    The functions use nearest color matching based on Euclidean distance in RGB space. 
    Naming conventions for color mapping include those from 'BrickLink' (<https://www.bricklink.com>), 'The Lego Group' (<https://www.lego.com>), 'LDraw' (<https://www.ldraw.org/>), and 'Peeron' (<http://www.peeron.com/>).