{'fraction_non_alphanumeric': 0.016736401673640166, 'fraction_numerical': 0.0, 'mean_word_length': 5.773584905660377, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Framework for Estimation and Inference in Generalized Additive Models with Shape and Order Restrictions

Methodology for the partial linear generalized additive model is presented, where components for continuous predictors may be modeled with shape-constrained regression splines, and components for ordinal predictors may have partial orderings. The estimated mean function is obtained through a projection (or iteratively reweighted projections) onto a polyhedral convex cone; this is key for formally derived inference procedures. Pointwise confidence bands and hypothesis tests for the individual components, as well as a model selection method, are proposed. These methods are available in the R package cgam.