PROPs | R Documentation |
The functions returns the proportion of ones in the dummy variables existing in a matrix.
PROPs(X, dummy = TRUE, pos = NULL)
X |
A numeric matrix that should contain more than one regressor (intercept included). |
dummy |
A logical value that indicates if there are dummy variables in the matrix |
pos |
A numeric vector that indicates the position of the dummy variables, if these exist, in the matrix |
R. Salmerón (romansg@ugr.es) and C. García (cbgarcia@ugr.es).
multiCol
.
# random x1 = sample(1:50, 25) x2 = sample(1:50, 25) x3 = sample(cbind(array(1,25), array(0,25)), 25) x4 = sample(cbind(array(1,25), array(0,25)), 25) x = cbind(x1, x2, x3, x4) head(x) PROPs(x, TRUE, pos = c(3,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.