powered by
Smoothing spline Anova method
SplinePCFit(data, xCol, yCol, testX, modelFormula = NULL)
a vector or numeric predictions on user provided test data
a matrix or dataframe to be used in modelling
a numeric or vector stating the column number of feature covariates
a numeric value stating the column number of target
a matrix or dataframe, to be used in computing the predictions
default is NULL else a model formula specifying target and features.Please refer 'gss' package documentation for more details
data = data1[c(1:100),] xCol = 2 yCol = 7 testX = data1[c(101:110), ] Spline_prediction = SplinePCFit(data, xCol, yCol, testX)
Run the code above in your browser using DataLab