dot-get_X_seq: Sequence of Spline Terms

Description Usage Arguments Value Examples

Description

Sequence of Spline Terms

Usage

1
.get_X_seq(data, ng = 1001)

Arguments

data

- matrix or dataframe containing only spline terms

ng

- optional length of sequence

Value

- matrix of sequenced spline terms

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#Set length of x sequence
n = 100

#Load data
data(mtcars)
#Show number of parameters in data
ncol(mtcars)

#Apply get_means to dataset
z = .get_X_seq(mtcars, n)
#Show output
z
#Dimensions is n x (number of parameters)
dim(z)
#Show sequenced mpg in z compared to mpg in mtcars
sort(mtcars[ , 1]); z[ , 1]

christithomp/scamplot documentation built on Dec. 10, 2019, 11:33 a.m.