Hello Experts,
I'm wondering if it is possible to calculate the cv wit proc tabulate for all variables.
When i try my code it does not work :
proc tabulate data=bdd;
class departement;
var _all_;
table nom_departement, (_all_)*cv;
run;
Thank you for your help!
Please send your complete SAS log from the code below and the results of the PROC CONTENTS and PROC FREQ as attachments (not partial screenshots).
proc contents data=bdd;
run;
proc tabulate data=bdd;
class departement;
var Nmbr_de_lgm;
table departement, (Nmbr_de_lgm)*(cv);
run;
proc freq data=bdd;
tables Nmbr_de_lgm / missing;
run;
Hi @SASdevAnneMarie ,
you can use _NUMERIC_ (not _ALL_) because variables listed in the VAR statement of PROC TABULATE must be numeric, and CV is a valid TABULATE statistic keyword.
You would get this message if your numeric variable, Nmbr_de_lgm, has all missing values. To check, run the following:
proc freq data=bdd;
tables Nmbr_de_lgm / missing;
run;
Can you send the results of the PROC FREQ I suggested?
My data does not have the missing values, I can not understand why the proc tabulate does not work ( :
Please send your complete SAS log from the code below and the results of the PROC CONTENTS and PROC FREQ as attachments (not partial screenshots).
proc contents data=bdd;
run;
proc tabulate data=bdd;
class departement;
var Nmbr_de_lgm;
table departement, (Nmbr_de_lgm)*(cv);
run;
proc freq data=bdd;
tables Nmbr_de_lgm / missing;
run;
@SASdevAnneMarie wrote:
I don't have the missing values in variables.
How about all 0 values for Nmbr_de_lgm for one or more departement levels? The CV function has some issues with that I believe.
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.