td.binomial: Binomial Test

Description Usage Arguments Details Value Note Examples

View source: R/td.binomial.R

Description

Function to run binomial test against columns in Teradata.

Usage

1
td.binomial(tdf, first, second, thresh = 0.05)

Arguments

tdf

td data frame.

first

first column name.

second

second column name.

thresh

threshold value. Defaults to 0.05.

Details

The data for a binomial test is assumed to come from n independent trials, and have outcomes in either of two classes. The other assumption is that the probability of each outcome of each trial is the same, designated p. The values of the outcome could come directly from the data, where the value is always one of two kinds.

Value

data frame with one row of binomial results.

Note

Several statistical functions like this one use the Teradata Warehouse Miner statistical tables and they need to be installed to use this function. You can also set up tdMetadataDB once you know where they are installed otherwise they will be searched for.

Examples

1
2
3
4
## Not run: 
td.binomial(tdf, "income", "age")

## End(Not run)

nonsleepr/teradataR documentation built on May 23, 2019, 9:32 p.m.