A Linear Model to 'SQL' Compiler


[Up] [Top]

Documentation for package ‘modelc’ version 1.0.0.0

Help Pages

apply_linkinverse Wrap the model SQL in the appropriate link function inverse to return scaled predictions
build_additive_term Get SQL representing a continuous term in the model with no interactions
build_factor_case_statements Build SQL CASE statements representing the factors in the model
build_interaction_term Build a SQL interaction term
build_intercept Get SQL representing the intercept term given the R model and parameter name
build_product Build a SQL product
extract_level Extract the level from the factor name
extract_parameters Extract parameters from a linear model
extract_parameter_coefficient Extract the coefficient of a model parameter
get_factor_name Extract the factor name from an R model
has_parameter Check if an R model contains a coefficient
is_factor Detect if the given model term is a factor
is_interaction Detect if the given model term is an interaction
is_intercept Check if the given parameter is the intercept
modelc Compile an R model to a valid TSQL formula