Learn R Programming

DSWE (version 1.8.2)

SplinePCFit: Smoothing spline Anova method

Description

Smoothing spline Anova method

Usage

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

Value

a vector or numeric predictions on user provided test data

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

Examples

Run this code

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