SplinePCFit | R Documentation |
Smoothing spline Anova method
SplinePCFit(data, xCol, yCol, testX, modelFormula = NULL)
data |
a matrix or dataframe to be used in modelling |
xCol |
a numeric or vector stating the column number of feature covariates |
yCol |
a numeric value stating the column number of target |
testX |
a matrix or dataframe, to be used in computing the predictions |
modelFormula |
default is NULL else a model formula specifying target and features.Please refer 'gss' package documentation for more details |
a vector or numeric predictions on user provided test data
data = data1[c(1:100),]
xCol = 2
yCol = 7
testX = data1[c(101:110), ]
Spline_prediction = SplinePCFit(data, xCol, yCol, testX)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.