# proc iml

1. ### Eigenvectors of SSE^-1*SSH

I'm in my Multivariate Analysis class and I'm having a few difficulties with coding in SAS. Would anyone be able to point me in the right direction to where I can get help with calculating the eigenvectors(a_1,a_2,...,a_sub_k) of the matrix SSE^-1*SSH by way of using SAS Enterprise Guide...
2. ### problem in doing the sas programming

proc iml; S = 10; N = 100; P = 5000; call randseed(12345); Res = {0 , 0}; do rep = 1 to S; X = j(N, P, .); Y = j(N, 2, .); call randgen(x, ’normal’); call randgen(y, ’normal’); Cor = corr(Y || X)[{1 2}, 3:(P+2)]; Res = Res + abs(Cor)[ ,<>]; end; Res = Res / S; print Res; quit...
3. ### PROC IML module for CDF

How would one create a proc iml module to calculate the cdf? Denote f(x;μ,σ) and F(x;μ,σ), respectively, the p.d.f. and the c.d.f. of N(μ,σ^2). The p.d.f. and the c.d.f. of contaminated normal cN(μ,σ2,σc^2,p) (a N(μ,σ^2) contaminated in spread by a N(μ,σc^2) with probability p) are...
4. ### SAS: cdf for contaminated normal (PROC IML)

Denote f(x;μ,σ) and F(x;μ,σ), respectively, the p.d.f. and the c.d.f. of N(μ,σ^2). The p.d.f. and the c.d.f. of contaminated normal cN(μ,σ2,σc^2,p) (a N(μ,σ^2) contaminated in spread by a N(μ,σc^2) with probability p) are (1-p)f(x;μ,σ)+pf(x;μ,σc) and (1-p)F(x;μ,σ)+pF(x;μ,σc), respectively...
5. ### Calling R Functions from SAS, OPTION=RLANG; PROC IML

I need to run R code in SAS (OPTION=RLANG, PROC IML) PROBLEM So far I've been running Shapley regression in R using the following code require(relaimpo) data <- read.csv("H:/…/data/shapley data.csv") reg <- lm(Q5 ~Q7_1+Q7_2+Q7_3+Q7_4+Q7_5+Q7_6+Q7_7, data=data) summary(reg) shap <-...