Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Outer

Outer function


Description

The outer function.

Usage

Outer(x, y, oper = "*")

Arguments

x

A numerical vector.

y

A numerical vector.

oper

The available options are "*" (multiplication), "/" (division), "+" (sum), "-" (sbtraction), "^" (power raise), and "

Details

The function is the same as R's "outer", but works with vectors only and probably has less capabilities, but faster.

Value

A matrix with two rows. In each row the X2 or G2 test statistic, its p-value and the degrees of freedom are returned.

Author(s)

Manos Papadakis and Michail Tsagris

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com> and Michail Tsagris <mtsagris@yahoo.gr>.

See Also

Examples

x <- rnorm(10)
y <- rnorm(10)
res<-Outer(x, y)

Rfast

A Collection of Efficient and Extremely Fast R Functions

v2.0.1
GPL (>= 2.0)
Authors
Manos Papadakis, Michail Tsagris, Marios Dimitriadis, Stefanos Fafalios, Ioannis Tsamardinos, Matteo Fasiolo, Giorgos Borboudakis, John Burkardt, Changliang Zou, Kleanthi Lakiotaki and Christina Chatzipantsiou.
Initial release
2020-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.