Description Usage Arguments Value Examples
View source: R/Functions_Cross_Dep.R
Interact several factors. This function allows for binary \{0,1\} interaction between observable factors xi and xj. xi and xj should be of the same length. It creates a 1 if i and j belong to the same category (xi=xj) and zero otherwise. This function also allows several factors i.e. xi and xj as vectors
1 |
xi |
vector of first variable terms |
xj |
vector of second variable terms |
k |
a dummy input as length of xi; does not need to be specified. |
vector of binaries \{0,1\} the same length as xi
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.