bivar.awk {CeTF} | R Documentation

## Summary statistics from two variables

### Description

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.

### Usage

    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)

[Package CeTF version 1.2.4 Index]