selectFctrStartk | R Documentation |
This function finds a number of starting knot locations for different factor levels and is used for creating an interaction term.
selectFctrStartk(knots, nk, s.eed = 1)
knots |
Coordinates of the knot locations in columns 1 and 2 and the associated factor level in the third. |
nk |
The number of knots to be selected for each factor level. This may be a single number (for all factor levels) or a vector of numbers to allow a different number of knots to be selected for each factor level. |
s.eed |
|
The function returns the row number of the knots
parameter for the selected knots.
#' # load data
data(nysted.analysisdata)
myknots <- selectFctrKnots(nysted.analysisdata[,c('x.pos', 'y.pos', 'impact')],
nk=150)
startknotlocs <- selectFctrStartk(myknots, nk=5, s.eed = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.