weopt: Optimization weights which maximize the correlation between...

Description Usage Arguments Value Examples

View source: R/Regress.R

Description

Optimization weights which maximize the correlation between two matrix

Usage

1
weopt(x = x, y = y)

Arguments

x

Vector of factors

y

Vector of local factors

Value

weights which maximize the correlation between two matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(ECTools)
X = data.frame(
 x1 = rnorm(100),
 x2 = rnorm(100),
 x3 = rnorm(100)
 )

Y = data.frame(
 y1 = rnorm(100),
 y2 = rnorm(100)
 )

dangulod/ECTools documentation built on May 4, 2019, 3:19 p.m.