| knotsGifi {Gifi} | R Documentation |
Utility function for Gifi knot specifications.
Description
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.
Usage
knotsGifi(x, type = c("Q", "R", "E", "D"), n = 3)
Arguments
x |
Data frame |
type |
|
n |
Number of interior knots (ignored for |
Details
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.
Value
A list containing knots for each variable.
Examples
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
[Package Gifi version 0.4-0 Index]