How do I code my sas prog. to solve this problem? I trying to comparing correlated means in the presence of incomplete data (Task) using simulated data I've tried to perform this task using simulated date - statistical power cal. Compute the empirical size and power calculation using 1000 data sets and significance level of α = 0:05. Under the alternative hypotheses is varied among 0 and 1.0, and the correlation is varied among ρ = 0.2 and 0.9. Simulation1 Generate from Exponential distribution with scale parameter = 1; using np = 20, nux = 10, and nuy = 25 Simulation 2 Generate from normal distribution using np = 20, nux = 30, and nuy = 10 Simulation 3 Generate from normal distribution using np = 10, nux = 15, and nuy = 5 Where np represent the number of complete pairs where both observations (x; y) are present, nux is the number of unpaired observations where only the first value (x) is present and nuy is the number of unpaired observations where only the second value (y) is present. Figure 4 – Two Correlated Normally Distributed Variables Data Example4; call streaminit(5678); keep x y; mu1=10; mu2=20; var1=4; var2=9; rho=.5; do i = 1 to 1000; x = rand("Normal", 0,1); y = rho*x+sqrt(1-rho**2)*rand("Normal",0,1); x = mu1 + sqrt(var1)*x; y = mu2 + sqrt(var2)*y; output; end; run
... View more