Read two columns of data values (say X and Y) and computes summary statistics including N, Mean, SD, Min and Max for X and Y, as well as the correlation between X and Y and the regression of Y on X.

bivar.awk(x)

Arguments

x

A dataframe with two columns (variables).

Value

Returns an summary statistics for two variables.

Examples

# creating a random dataframe with two columns (variables) tab <- data.frame(a = sample(1:1000, 100, replace=TRUE), b = sample(1:1000, 100, replace=TRUE)) # running bivar.awk function bivar.awk(tab)
#> $mean1 #> [1] "535.4500" #> #> $mean2 #> [1] "517.4900" #>