mkIndiList {anacor} | R Documentation |
This function takes a data frame, a vector of types, a list of knot vectors, and a vector of orders. It returns a list of codings for the variables, i.e., crisp indicator, numerical version, or fuzzy indicator.
mkIndiList(data, type = rep("C",dim(data)[2]), knots = repList(0,length(type)), ord = rep(1,length(type)))
data |
Data frame to be converted. |
type |
If "C" , a crisp indicator is returned; if "A" , a numerical version; if "F" , the b-spline basis as a fuzzy indicator. |
knots |
Knot sequence for type-C coding. |
ord |
Variable order for type-C coding. |
expandFrame
, code{burtTable}
# artificial data x1 <- sample(1:6, 20, replace = TRUE) x2 <- sample(1:3, 20, replace = TRUE) data <- data.frame(x1,x2) mkIndiList(data)