Description Usage Arguments Value Examples
Sequence of Spline Terms
1 | .get_X_seq(data, ng = 1001)
|
data |
- matrix or dataframe containing only spline terms |
ng |
- optional length of sequence |
- matrix of sequenced spline terms
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]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.