SplinePCFit {DSWE}R Documentation

Smoothing spline Anova method

Description

Smoothing spline Anova method

Usage

SplinePCFit(data, xCol, yCol, testX, modelFormula = NULL)

Arguments

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

Value

a vector or numeric predictions on user provided test data

Examples


data = data1[c(1:100),]
xCol = 2
yCol = 7
testX = data1[c(101:110), ]
Spline_prediction = SplinePCFit(data, xCol, yCol, testX)


[Package DSWE version 1.5.1 Index]