Question: What is being tested for in the following code and analysis? a ) What is p for the mathematical formulation used in the code below
What is being tested for in the following code and analysis?
a What is p for the mathematical formulation used in the code below for the analysis?
b What conclusions can you make from the plot below? Give justification for your answer.
c Compare the plot produced by proc sgplot data chiplot at the end of this question below with the plot reported in previous question. What can you conclude about the distributions by comparing the plots?
Left image is previous question, right image is plot from this question.
Code used:
proc iml;
use Datasetnew;
reset print;
read all var xx xx xx into x;
centre meanx
cov covx
cor corrx;
y txcentre;
d tyinvcovy;
mahala vecdiagd;
ranks rankmahala;
p ncolx;
n nrowx;
franksn;
chiq cinvfp;
chiplot mahala chiq;
create chiplot from chiplotcolnamme MAHDIST 'CHISQ';
append from chiplot;
quit;
proc sgplot data chiplot;
scatter y MAHDIST x CHISQ;
run;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
