createSplineSettings {PatientLevelPrediction} | R Documentation |
Create the settings for adding a spline for continuous variables
Description
Create the settings for adding a spline for continuous variables
Usage
createSplineSettings(continousCovariateId, knots, analysisId = 683)
Arguments
continousCovariateId |
The covariateId to apply splines to |
knots |
Either number of knots of vector of split values |
analysisId |
The analysisId to use for the spline covariates |
Details
Returns an object of class featureEngineeringSettings
that specifies the sampling function that will be called and the settings
Value
An object of class featureEngineeringSettings
Examples
# create splines for age (1002) with 5 knots
createSplineSettings(continousCovariateId = 1002, knots = 5, analysisId = 683)
[Package PatientLevelPrediction version 6.4.1 Index]