mfp2 User Guide7 days ago
Introduction to the mfp2 package | Supported model families | Choosing an interface | Estimation algorithm | Installation | Linear regression | Fitting MFP models using the formula interface | A short matrix-interface example | Shifting and scaling of covariates | Manually specifying shifts and scales | Centering and prediction on the original predictor scale | Subsetting and analysis populations | Factors and grouped terms after subsetting | Setting degrees of freedom for each variable | Tuning parameters for MFP | Nominal significance levels | Information criteria | Retaining predictors and forcing functional forms | Model comparison tests | Choosing FP powers using subject-matter knowledge | Specifying candidate powers | Candidate powers and selected powers | Explanation of output from the model-selection algorithm | Methods defined for mfp2 | Inspecting the selected model | Summarising the fitted effects | Extracting and interpreting coefficients | Making predictions | Graphical presentation of FP functions | Fitted functions and residuals | Contrasts relative to a reference value | Choosing where to evaluate the function | Handling categorical variables | Unordered factors | Ordered factors | Formula-interface example | Categorical predictors in the matrix interface | Logistic regression | Survival data | Fitting a Cox model | Using a monotonic function for positive lymph nodes | Stratified Cox model | Examples for additional outcome families | Multinomial regression | Ordinal regression | Generalized estimating equations | References