generate_test_data {mgss}R Documentation

Generate multi-dimensional test data for spline smoothing.

Description

Generate a P-dimensional test data set based on a sigmoid function.

Usage

generate_test_data(n, P, split = 0.8)

Arguments

n

Numer of samples

P

Spatial dimension

split

A value between 0 and 1 for the train / test split.

Value

A list of the covarite matrices for the train and test data X_train and X_test and of the variable of interest y_train and y_test.

Examples

generate_test_data(100, 2)


[Package mgss version 1.2 Index]