Description Usage Arguments Value Examples
View source: R/CIVMR_function.R
This function find a unique solutin to the constrained instrument problem given matrix A and B.
1 | solve_pcc(A, B)
|
A: |
matrix given by LA_decomposition(). |
B: |
matrix given by LA_decomposition(). |
c: solution to the constrained maximization problem.
max_value: the maximized correlation value.
1 2 3 4 5 6 7 | data(simulation)
#CIV linear algebra decomposition components
civ.deco <- LA_decomposition(simulation$G,simulation$X,simulation$Z)
#solve the CIV solution \eqn{u}
civ.c <- solve_pcc(civ.deco$A, civ.deco$B)
#plot the weight c
plot(civ.c$c)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.