valid.pairs: Valid Pairs

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns information about the number of valid X-Y pairs.

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	# 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) 

multicon documentation built on May 2, 2019, 3:18 a.m.