Subscribe Bookmark RSS Feed

Using a variable as an X value in paired t-test.

So I have the following code:

col = ":Sex";

New Window("AQP8 Normal",
Matched Pairs(
X(:Name("col")),
Y( :Name( "AQP8-Norm-Memb" ), :Name( "AQP8-Norm-Cyto" ) ),
Reference Frame( 1 ),
Wilcoxon Signed Rank( 1 )
)
);


It doesn't work. No error messages, no nothing. Very annoying.

Any ideas on how I can use a variable to assign X?

Thanks.




Related rant feel free to ignore: WHY DIDN'T SAS JUST USE C/C++ AS THE BASE OF THE LANGUAGE INSTEAD OF COMING UP WITH SOME "NEW" LANGUAGE!! PISSES ME OFF IN SAS TOO!

Thanks. I'm done. I feel better now. :)
2 REPLIES
ms

Super User

Joined:

Jun 23, 2011

Have you checked the log for error messages? Usually you will get a hint in the log of what's causing the script to fail.

In your script I found two potential errors: The col assignment (you assign a string ":Sex" to col instead of a column) and the X assignment (you assign a column with heading col rather than use the column variable col)

This should work:
That is indeed the solution.

Thanks for your help.