Returns information about the number of valid X-Y pairs.
Usage
valid.pairs(x, y)
Arguments
x
A vector of the same length as 'y'
y
A vector of the same lenght as 'x'
Details
This function returns the total number of X-Y pairs, the number of X-Y pairs with at least one of the pairs missing a value, the number of X-Y pairs without either pair missing, and the percentage of total pairs that do not have either pair missing. Called by the Profile.r function.
Value
A list containing the following:
Tot
The total number of X-Y pais
Miss
The total number of X-Y pairs with at least one value missing
Valid
The total number of X-Y pairs with neither value missing
Pct
The percentage of X-Y pairs with neither value missing
Author(s)
Ryne A. Sherman
See Also
Profile.r
Examples
# Making some data
x.vect <- rnorm(100, m=0, sd=.5)
y.vect <- rnorm(100, m=0, sd=.5)
#checking valid pairs
valid.pairs(x.vect,y.vect)
#making some missing data
x.vect[1:5] <- NA
y.vect[95:100] <- NA
#now checking valid pairs
valid.pairs(x.vect,y.vect)