knotsGifi | R Documentation |
Produces a list of knots used as input argument in various Gifi functions (homals
, princals
, morals
, etc.). Contains options for placing knots at the quantiles, for knots equally spaced on the range, for knots at the data points, and for no interior knots.
knotsGifi(x, type = c("Q", "R", "E", "D"), n = 3)
x |
Data frame |
type |
|
n |
Number of interior knots (ignored for |
Simple linear or polynomial transformations can be specified using type = "E"
and the corresponding degree in the subsequent Gifi function call. If the data frame contains factors, they are converted internally to numeric
using makeNumeric
.
A list containing knots for each variable.
ABC6 <- ABC[,6:11] knotsGifi(ABC6, "Q") ## tercile knots knotsGifi(ABC6, "Q", 4) ## quartile knots knotsGifi(ABC6, "R") ## 3 equally spaced interior knots knotsGifi(ABC6, "E") ## no interior knots knotsGifi(ABC6, "D") ## knots at the data points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.