主题:葫芦僧乱判葫芦案 -- 煮酒正熟
It's really not something special, it's pretty much the same stuff that people in the whole industry are doing. If you challenge one specific analyst in our company that's fine. But since this is something really common in our industry, you're actually challenging all the statistics experts, and that' where I find a bit unaccetable.
By the way, just did a quick check and found that Levene test is for checking the equal variance assumption.
http://www.itl.nist.gov/div898/handbook/eda/section3/eda35a.htm
The macro for levene test.
/*************************************************************************/
/* This macro tests the Equality of Variances for a Response Variable */
/* using the Levene Test and is available for use on the ASU's */
/* Research/Statistics UNIX cluster. */
/* */
/* The following SAS macro takes as input: */
/* - the name of a Classification or Grouping Variable */
/* - the name of the Dependent Variable to be analyzed */
/* - the name of the SAS Data Set containing the above two variables */
/* */
/* It uses SAS PROC GLM to perform Levene's Test for Homoscedasticity. */
/* */
/* References: */
/* Madansky, Albert, Prescriptions for Working Statisticians, 1988, */
/* New York: Springer-Verlag. */
/* Miller, Rupert G., Jr., Beyond ANOVA, Basics of Applied Statistics,*/
/* 1986, New York: Wiley. */
/* */
/* Example of a statement to call the macro below: */
/* %LEVENE(gp_varname,dp_varname,ds_name); */
/* where */
/* gp_varname is the name of the grouping variable to be tested, */
/* dp_varname is the name of the dependent variable to be tested */
/* for homoscedasticity, */
/* ds_name is the SAS data set name given in the DATA step. */
/* */
/* The MACRO can be called in your SAS program as indicated below: */
/* */
/* OPTIONS SAS_system_options; */
/* DATA ds_name; */
/* INPUT gp_varname, dp_varname; */
/* (rest of your SAS statements) */
/* . */
/* . */
/* RUN; */
/* TITLE "Your choice of title"; */
/* %LEVENE(gp_varname,dp_varname,ds_name); */
/*************************************************************************/
OPTIONS NONOTES NOSOURCE NOSOURCE2; /* suppress usual echoing, and */;
OPTIONS ERRORABEND; /* abort job if the macro fails */;
%Macro Levene(Gp_var,Dp_var,DSet);
Proc GLM Data=&DSet;
Class &Gp_var;
Model &Dp_var=&Gp_var;
Means &Gp_var/HOVTest;
ODS select HOVFTest;
Run;
Quit;
%Mend Levene;
- 相关回复 上下关系8
压缩 8 层
🙂估计用的是t 检验 栏杆拍编 字273 2007-01-26 08:03:59
🙂I think you're missing the point 煮酒正熟 字919 2007-01-26 12:12:50
🙂那你给说说你们怎么满足第一和第二条的把 栏杆拍编 字1195 2007-01-26 13:00:27
🙂the other thing is
🙂嗬嗬,没有什么不可接受的 栏杆拍编 字883 2007-01-26 15:05:29
🙂I'm not a statistician 煮酒正熟 字721 2007-01-26 15:38:56
🙂Don't get me wrong 煮酒正熟 字1150 2007-01-26 13:45:54
🙂我已经说了吧? 栏杆拍编 字599 2007-01-26 14:32:37