PROPs {multiColl} | R Documentation |
Proportions
Description
The functions returns the proportion of ones in the dummy variables existing in a matrix.
Usage
PROPs(X, dummy = TRUE, pos = NULL)
Arguments
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 |
Author(s)
R. Salmerón (romansg@ugr.es) and C. García (cbgarcia@ugr.es).
See Also
Examples
# 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))
[Package multiColl version 2.0 Index]