Dear Rick, The objective of this study is to evaluate whether the index formed by the division of these two variables has a normal distribution. The mean, variance and covariance used for the simulation of the data came from fieldwork (Animal Science - Growing cattle, n = 41). For this reason I'm simulated a matrix Nx2 using PROC IML, but never worked with this procedure in SAS. The intention was to create a simulation of the population with mean, variance and covariance equal gives the sample collected in the field. I would like to take a sample of this population to test normalizade variables and the index formed by the division of the two. Follows the complete code: PROC IML; N=100000; MEAN={0.074, 0.1274}; COV={0.000302 0.000581,0.000581 0.00156}; CALL RANDSEED(321); P = RANDNORMAL(N,MEAN,COV); CREATE ESTRUTURA FROM P; APPEND FROM P; CLOSE ESTRUTURA; RUN; DATA DATA_A; SET ESTRUTURA; RENAME COL1=ELM COL2=EMM; KM=COL1/COL2; RUN; PROC PRINT DATA=DATA_A; RUN; PROC CORR DATA=DATA_A; VAR ELM EMM; RUN; ODS GRAPHICS ON; PROC UNIVARIATE DATA=DATA_A NORMAL; VAR ELM EMM KM; HISTOGRAM / NORMAL; RUN; ODS GRAPHICS OFF; using the programming provided by you, the message: "ERROR: Invocation of unresolveed module SAMPLE", appeared again when I tried to remove the sample. I'm sorry by my ignorance, but I'm since the study started Monday this week, but I'm struggling.
... View more