All About Statistics Wed, 29 Mar 2017 09:26:44 +0000 en-US hourly 1 http://wordpress.org/?v=3.4.2 statsblogshttps://feedburner.google.com Lists: Nonmatrix data structures in SAS/IML http://feedproxy.google.com/~r/statsblogs/~3/lBMxn-JRfsM/ /2017/03/29/lists-nonmatrix-data-structures-in-sasiml/#comments Wed, 29 Mar 2017 09:26:44 +0000 Rick Wicklin http://blogs.sas.com/content/iml/?p=18921

Lists are collections of objects. SAS/IML 14.2 supports lists as a way to store matrices, data tables, and other lists in a single object that you can pass to functions. SAS/IML lists automatically grow if you add new items to them and shrink if you remove items. You can also [...]

The post Lists: Nonmatrix data structures in SAS/IML appeared first on The DO Loop.

The post Lists: Nonmatrix data structures in SAS/IML appeared first on All About Statistics.

]]>
(This article was originally published at The DO Loop, and syndicated at StatsBlogs.)

Lists are collections of objects. SAS/IML 14.2 supports lists as a way to store matrices, data tables, and other lists in a single object that you can pass to functions. SAS/IML lists automatically grow if you add new items to them and shrink if you remove items. You can also modify existing items. You can use indices to refer to items of a list, or you can assign names to the items to create a named list.

Create a list

You can create a list by using the ListSetItem subroutine to assign a value to each item:

proc iml;
L = ListCreate(2);                  /* L is two-item list */
call ListSetItem(L, 1, 1:3);        /* 1st item is 1x3 vector */
call ListSetItem(L, 2, {4 3, 2 1}); /* 2nd item is 2x2 matrix */

The arguments for the ListSetItem subroutine are list, index, and value, which is the same order that you use when you assign a value to a matrix element, such as A[2] = 5.

If you do not know how many items the list will contain, or if you later want to add additional items, you can use
X = {3 1 4, 2 5 3};                 /* create a 2x3 matrix */
call ListAddItem(L, X);             /* add 3rd item; list grows */

Notice that the syntax for the ListAddItem subroutine only requires the list and the value because the new item is always added to the end of the list. At this point, the list contains three items, as shown below:

Items in a SAS/IML list can be different shapes and sizes

Insert, modify, and delete list items

A convenient feature of SAS/IML lists is that they automatically resize. You can insert new items into any position in the list. You can also replace an existing item or delete an item. The following statements demonstrate modifying an existing list.

call ListInsertItem(L, 2, -1:1);    /* insert new item before item 2; list grows */
call ListSetItem(L, 1, {A B, C D}); /* replace 1st item with 2x2 character matrix */
call ListDeleteItem(L, 3);          /* delete 3rd item; list shrinks */

The arguments for k, existing higher-indexed items are also renumbered. (Conceptually, items "move to the left.") After the previous sequence of operations, the list contains the following items:

You can insert, modify, and delete items in a SAS/IML list

Create named lists

In the previous section, the list acted like a dynamic array: it stored items that you could access by using indices such as 1, 2, and 3. For some applications, it makes more sense to name the list items and refer to the items by their names rather than their positions. This is similar to "structs" in some languages, where you can refer to members of a struct by name.

For example, suppose a teacher wants to store information about students in her classes. For each student, she might want to store the student's name, class, and test scores. The following statements create a SAS/IML list that has three items named "Name", "Class", and "Scores". The items are then assigned values:

Student = ListCreate({"Name" "Class" "Scores"});  /* create named list with 3 items */
call ListSetItem(Student, "Name", "Ron");         /* set "name" value for student */
call ListSetItem(Student, "Class", "Statistics"); /* set "class" value  for student */
Tests = {100 97 94 100 100};                      /* test scores */
call ListSetItem(Student, "Scores", Tests);       /* set "scores" value for student */

Although you can still use positional indices to access list items ("Ron" is the first item, "Statistics" is the second item, ...), you can also use the name of items. For example, to extract the test scores into a SAS/IML matrix or vector, you can use
s = ListGetItem(Student, "Scores");               /* get test scores from list */

Lists are for storing items, not for computing. You cannot add, subtract, or multiply lists. However, the example shows that you can extract an item into a matrix and subsequently perform algebraic operations on the matrix.

Lists of lists

Lists can contain sublists. In this way you can represent nested or hierarchical data. For example, the teacher might want to store information about several students. If information about each student is stored in a list, then she can use a list of lists to store information about multiple students.

The following statements create a list called All. The first student ("Ron") is added to the list, which means that the item is a copy of the Student list. Then information about a second student ("Karl") is stored in the Student list and copied into the All list as a second item. This process could continue until all students are stored in the list.

All = ListCreate();                  /* empty list */
call ListAddItem(All, Student);      /* add "Ron" to list */
 
call ListSetItem(Student, "Name", "Karl"); 
call ListSetItem(Student, "Class", "Calculus");
call ListSetItem(Student, "Scores", {90 92 84 70 80});  
call ListAddItem(All, Student);      /* add "Karl" to list */

At this point, the All list contains two items. Each item is a list that contains three items.

Summary

SAS/IML 14.2 supports lists, which are containers that store other objects. Lists dynamically grow or shrink as necessary. You can index items by their position in the list (using indices) or you can create a named list and reference items by their names. You can use built-in functions to extract items a list or add new items to a list. You can insert, delete, and modify list items. You can represent hierarchical data by using lists of lists. For more information about SAS/IML lists, see the chapter in the SAS/IML documentation. The documentation shows how lists can be used to emulate other data structures, such as stacks, queues, and trees.

The post Lists: Nonmatrix data structures in SAS/IML appeared first on The DO Loop.



Please comment on the article here: The DO Loop

The post Lists: Nonmatrix data structures in SAS/IML appeared first on All About Statistics.

]]>
/2017/03/29/lists-nonmatrix-data-structures-in-sasiml/feed/ 0 /2017/03/29/lists-nonmatrix-data-structures-in-sasiml/
Text as Data http://feedproxy.google.com/~r/statsblogs/~3/Q1NL1Nk7M3g/ /2017/03/28/text-as-data/#comments Tue, 28 Mar 2017 18:37:00 +0000 Francis Diebold /?guid=af3abd80956fcd02e299e16ec18b5b40 "Text as data" is a vibrant and by now well-established field. (Just Google "text as data".) For an informative overview geared toward econometricians, see the new paper, "Text as Data" by Matthew Gentzkow, Bryan T. Kelly, and Matt Taddy (GKT). (Ungate...

The post Text as Data appeared first on All About Statistics.

]]>
(This article was originally published at No Hesitations, and syndicated at StatsBlogs.)

"Text as data" is a vibrant and by now well-established field. (Just Google "text as data".)

For an informative overview geared toward econometricians, see the new paper, "Text as Data" by Matthew Gentzkow, Bryan T. Kelly, and Matt Taddy (GKT). (Ungated version here.)

"Text as data" has wide applications in economics. As GKT note:
... in finance, text from financial news, social media, and company filings is used to predict asset price movements and study the causal impact of new information. In macroeconomics, text is used to forecast variation in inflation and unemployment, and estimate the effects of policy uncertainty. In media economics, text from news and social media is used to study the drivers and effects of political slant. In industrial organization and marketing, text from advertisements and product reviews is used to study the drivers of consumer decision making. In political economy, text from politicians’ speeches is used to study the dynamics of political agendas and debate.

There are three key steps:

1. Represent the raw text D as a numerical array x

2. Map x into predicted values yhat of outcomes y

3. Use yhat in subsequent descriptive or causal analysis.

GKT emphasize the ultra-high dimensionality inherent in statistical text analyses, with connections to machine learning, etc.



Please comment on the article here: No Hesitations

The post Text as Data appeared first on All About Statistics.

]]>
/2017/03/28/text-as-data/feed/ 0 /2017/03/28/text-as-data/
Light entertainment: Colorful circle of life http://feedproxy.google.com/~r/statsblogs/~3/3MUIwDagkEQ/ /2017/03/28/light-entertainment-colorful-circle-of-life/#comments Tue, 28 Mar 2017 13:17:00 +0000 junkcharts /?guid=46233231299003d5979fbd04bc5bf71e World Economic Forum can do better than this...

The post Light entertainment: Colorful circle of life appeared first on All About Statistics.

]]>
(This article was originally published at Junk Charts, and syndicated at StatsBlogs.)

World Economic Forum can do better than this...

Oecd_wellbeing_denmark

 



Please comment on the article here: Junk Charts

The post Light entertainment: Colorful circle of life appeared first on All About Statistics.

]]>
/2017/03/28/light-entertainment-colorful-circle-of-life/feed/ 0 /2017/03/28/light-entertainment-colorful-circle-of-life/
The Association for Psychological Pseudoscience presents . . . http://feedproxy.google.com/~r/statsblogs/~3/mIxWcPsR6T8/ /2017/03/28/the-association-for-psychological-pseudoscience-presents/#comments Tue, 28 Mar 2017 13:00:13 +0000 Andrew http://andrewgelman.com/?p=33099

Hey! The organization that publishes all those Psychological Science-style papers has scheduled their featured presentations for their next meeting. Included are: – That person who slaps the label “terrorists” on people who have the nerve to question their statistical errors. – One of the people who claimed that women were 20 percentage points were likely […]

The post The Association for Psychological Pseudoscience presents . . . appeared first on Statistical Modeling, Causal Inference, and Social Science.

The post The Association for Psychological Pseudoscience presents . . . appeared first on All About Statistics.

]]>
(This article was originally published at Statistical Modeling, Causal Inference, and Social Science, and syndicated at StatsBlogs.)

Hey! The organization that publishes all those Psychological Science-style papers has scheduled their featured presentations for their next meeting.

Included are:

– That person who slaps the label “terrorists” on people who have the nerve to question their statistical errors.

– One of the people who claimed that women were 20 percentage points were likely to vote for Barack Obama, during a certain time of the month.

– One of the people who claimed that women are three times as likely to wear red, during a certain time of the month.

– The editor of the notorious PPNAS papers on himmicanes, air rage, and ages ending in 9.

– One of the people who claimed, “That a person can, by assuming two simple 1-min poses, embody power and instantly become more powerful has real-world, actionable implications.”

– Yet another researcher who responded to a failed replication without even acknowledging the possibility that their original claims might have been in error.

– The person who claimed, “Barring intentional fraud, every finding is an accurate description of the sample on which it was run.”

<

The whole thing looks like a power play. The cargo-cult social psychologists have the power, and they’re going to use it. They’ll show everyone who’s boss. Nobody’s gonna use concerns such as failed replications, lack of face validity, and questionable research practices to push them around!

Talk about going all-in.

All they’re missing are speakers on ESP, beauty and sex ratio, the contagion of obesity, ego depletion, pizza research, 2.9013, and, ummm, whatever Mark Hauser and Diederik Stapel have been up to recently.

Here’s the official line:

The mission of the Association for Psychological Science is to promote, protect, and advance the interests of scientifically oriented psychology in research, application, teaching, and the improvement of human welfare.

I guess that works, as long as you use the following definitions:
“promote” = Ted talks, twitter, and NPR;
“protect” = deflect scientific criticism;
“advance the interests of scientifically oriented psychology” = enhance the power of a few well-situated academic psychologists and their friends.

It’s a guild, man, nuthin but an ivy-covered Chamber of Commerce. Which is fine—restraint of trade is as American as baseball, hot dogs, apple pie, and Chevrolet.

The only trouble is that I’m guessing that the Association for Psychological Science has thousands of members who have no interest in protecting the interests of this particular club. I said it before and I’ll say it again: Psychology is not just a club of academics, and “psychological science” is not just the name of their treehouse.

The post The Association for Psychological Pseudoscience presents . . . appeared first on Statistical Modeling, Causal Inference, and Social Science.



Please comment on the article here: Statistical Modeling, Causal Inference, and Social Science

The post The Association for Psychological Pseudoscience presents . . . appeared first on All About Statistics.

]]>
/2017/03/28/the-association-for-psychological-pseudoscience-presents/feed/ 0 /2017/03/28/the-association-for-psychological-pseudoscience-presents/
The Las Vegas Odds http://feedproxy.google.com/~r/statsblogs/~3/OWTTy2Qbwds/ /2017/03/27/the-las-vegas-odds/#comments Mon, 27 Mar 2017 22:30:08 +0000 Andrew http://andrewgelman.com/?p=33362

Kevin Lewis suggests the above name for pro football’s newest team, after hearing that “The NFL is letting the Oakland Raiders move to Las Vegas, a move once nearly unthinkable due to its opposition to sports gambling.” Is there anyone good at graphic design who’d like to design a logo? I’m not sure what images […]

The post The Las Vegas Odds appeared first on Statistical Modeling, Causal Inference, and Social Science.

The post The Las Vegas Odds appeared first on All About Statistics.

]]>
(This article was originally published at Statistical Modeling, Causal Inference, and Social Science, and syndicated at StatsBlogs.)

Kevin Lewis suggests the above name for pro football’s newest team, after hearing that “The NFL is letting the Oakland Raiders move to Las Vegas, a move once nearly unthinkable due to its opposition to sports gambling.”

Is there anyone good at graphic design who’d like to design a logo? I’m not sure what images would work here. Maybe a couple of dice, some betting slips, . . . ?

The post The Las Vegas Odds appeared first on Statistical Modeling, Causal Inference, and Social Science.



Please comment on the article here: Statistical Modeling, Causal Inference, and Social Science

The post The Las Vegas Odds appeared first on All About Statistics.

]]>
/2017/03/27/the-las-vegas-odds/feed/ 0 /2017/03/27/the-las-vegas-odds/
Le Monde puzzle [#1000…1025] http://feedproxy.google.com/~r/statsblogs/~3/pLvvHx4F8TY/ /2017/03/27/le-monde-puzzle-10001025/#comments Mon, 27 Mar 2017 22:17:07 +0000 xi'an http://xianblog.wordpress.com/?p=33089 Le Monde mathematical puzzle launched a competition to celebrate its 1000th puzzle! A fairly long-term competition as it runs over the 25 coming puzzles (and hence weeks). Starting with puzzle #1001. Here is the 1000th puzzle, not part of the competition: Alice & Bob spend five (identical) vouchers in five different shops, each time buying […]

The post Le Monde puzzle [#1000…1025] appeared first on All About Statistics.

]]>
(This article was originally published at R – Xi'an's Og, and syndicated at StatsBlogs.)

Le Monde mathematical puzzle launched a competition to celebrate its 1000th puzzle! A fairly long-term competition as it runs over the 25 coming puzzles (and hence weeks). Starting with puzzle #1001. Here is the 1000th puzzle, not part of the competition:

Alice & Bob spend five (identical) vouchers in five different shops, each time buying the maximum number of items to get close to the voucher value. In these five shops, they buy sofas at 421 euros each, beds at 347 euros each, kitchen appliances at 289 euros each, tables at 251 euros each and bikes at 211 euros each, respectively. Once the buying frenzy is over, they realise that within a single shop, they would have spent exactly four vouchers for the same products. What is the value of a voucher?

Filed under: Kids, R Tagged: Alice and Bob, arithmetics, competition, Le Monde, mathematical puzzle, R, Tangente



Please comment on the article here: R – Xi'an's Og

The post Le Monde puzzle [#1000…1025] appeared first on All About Statistics.

]]>
/2017/03/27/le-monde-puzzle-10001025/feed/ 0 /2017/03/27/le-monde-puzzle-10001025/
2 Stan job postings at Columbia (links fixed) http://feedproxy.google.com/~r/statsblogs/~3/8YfutH_s1vg/ /2017/03/27/2-stan-job-postings-at-columbia/#comments Mon, 27 Mar 2017 20:05:58 +0000 Andrew http://andrewgelman.com/?p=33360

1. Stan programmer. This is the “Stan programmers” position described here. 2. Stan project development. This is the Stan business developer/grants manager described here. To apply, click on the first link for each position above (the academicjobs.columbia.edu site) and follow the instructions. P.S. In first version of this post I messed up the links. They’re […]

The post 2 Stan job postings at Columbia (links fixed) appeared first on Statistical Modeling, Causal Inference, and Social Science.

The post 2 Stan job postings at Columbia (links fixed) appeared first on All About Statistics.

]]>
(This article was originally published at Statistical Modeling, Causal Inference, and Social Science, and syndicated at StatsBlogs.)

1. Stan programmer. This is the “Stan programmers” position described here.

2. Stan project development. This is the Stan business developer/grants manager described here.

To apply, click on the first link for each position above (the academicjobs.columbia.edu site) and follow the instructions.

P.S. In first version of this post I messed up the links. They’re fixed now.

The post 2 Stan job postings at Columbia (links fixed) appeared first on Statistical Modeling, Causal Inference, and Social Science.



Please comment on the article here: Statistical Modeling, Causal Inference, and Social Science

The post 2 Stan job postings at Columbia (links fixed) appeared first on All About Statistics.

]]>
/2017/03/27/2-stan-job-postings-at-columbia/feed/ 0 /2017/03/27/2-stan-job-postings-at-columbia/
Probability and Statistics in the Study of Voting and Public Opinion (my talk at the Columbia Applied Probability and Risk seminar, 30 Mar at 1pm) http://feedproxy.google.com/~r/statsblogs/~3/6GOm-DpbnFM/ /2017/03/27/probability-and-statistics-in-the-study-of-voting-and-public-opinion-my-talk-at-the-columbia-applied-probability-and-risk-seminar-30-mar-at-1pm/#comments Mon, 27 Mar 2017 13:03:06 +0000 Andrew http://andrewgelman.com/?p=33212

Probability and Statistics in the Study of Voting and Public Opinion Elections have both uncertainty and variation and hence represent a natural application of probability theory. In addition, opinion polling is a classic statistics problem and is featured in just about every course on the topic. But many common intuitions about probability, statistics, and voting […]

The post Probability and Statistics in the Study of Voting and Public Opinion (my talk at the Columbia Applied Probability and Risk seminar, 30 Mar at 1pm) appeared first on Statistical Modeling, Causal Inference, and Social Science.

The post Probability and Statistics in the Study of Voting and Public Opinion (my talk at the Columbia Applied Probability and Risk seminar, 30 Mar at 1pm) appeared first on All About Statistics.

]]>
(This article was originally published at Statistical Modeling, Causal Inference, and Social Science, and syndicated at StatsBlogs.)

Probability and Statistics in the Study of Voting and Public Opinion

Elections have both uncertainty and variation and hence represent a natural application of probability theory. In addition, opinion polling is a classic statistics problem and is featured in just about every course on the topic. But many common intuitions about probability, statistics, and voting are flawed. Some examples of widely-held but erroneous beliefs: votes should be modeled by the binomial distribution; sampling distributions and standard errors only make sense under random sampling; poll averaging is a simple problem in numerical analysis; survey sampling is a long-settled and boring area of statistics. In this talk, we discuss some challenging problems in probability and statistics that arise from the study of opinion and elections.

I’ll be speaking at the Applied Probability and Risk Seminar, 1:10-2:10pm in 303 Mudd Hall, Columbia University.

The post Probability and Statistics in the Study of Voting and Public Opinion (my talk at the Columbia Applied Probability and Risk seminar, 30 Mar at 1pm) appeared first on Statistical Modeling, Causal Inference, and Social Science.



Please comment on the article here: Statistical Modeling, Causal Inference, and Social Science

The post Probability and Statistics in the Study of Voting and Public Opinion (my talk at the Columbia Applied Probability and Risk seminar, 30 Mar at 1pm) appeared first on All About Statistics.

]]>
/2017/03/27/probability-and-statistics-in-the-study-of-voting-and-public-opinion-my-talk-at-the-columbia-applied-probability-and-risk-seminar-30-mar-at-1pm/feed/ 0 /2017/03/27/probability-and-statistics-in-the-study-of-voting-and-public-opinion-my-talk-at-the-columbia-applied-probability-and-risk-seminar-30-mar-at-1pm/
Collaboration with New York Public Library http://feedproxy.google.com/~r/statsblogs/~3/Vqf2_cOMvRg/ /2017/03/27/collaboration-with-new-york-public-library/#comments Mon, 27 Mar 2017 12:24:00 +0000 junkcharts /?guid=562b21ee1ccd3ba5fa08b682db08c026 For many years now, the field of Data Science and Business Analytics has been booming, and hiring managers are finding a severe dearth of high-quality job-seekers. Meanwhile, there are a good number of people interested in entering the field but keep bumping into walls. Hiring managers like to hire experienced people for a host of reasons, including the fear of other hiring managers poaching their trained employees. For a number of years now, I have been interested in solving this problem. In the next two weeks, I am collaborating with the New York Public Library's Job Search Central unit to...

The post Collaboration with New York Public Library appeared first on All About Statistics.

]]>
(This article was originally published at Big Data, Plainly Spoken (aka Numbers Rule Your World), and syndicated at StatsBlogs.)

For many years now, the field of Data Science and Business Analytics has been booming, and hiring managers are finding a severe dearth of high-quality job-seekers. Meanwhile, there are a good number of people interested in entering the field but keep bumping into walls. Hiring managers like to hire experienced people for a host of reasons, including the fear of other hiring managers poaching their trained employees. For a number of years now, I have been interested in solving this problem.

In the next two weeks, I am collaborating with the New York Public Library's Job Search Central unit to offer two free events.

The first is a public lecture on "How to Start a Data Science and Analytics Career." I will be spending significant time explaining what this field is about, and what data science and analytics teams do. I will also discuss the structure of the job market, and provide tips for how to land a job. You can find more information about it here. The talk is scheduled for April 1.

The second is a resume review workshop. From my experience as a hiring manager, I know that many job-seekers fall short in selling themselves to organizations. It is particularly challenging for those who are seeking to entering this field, and thus do not have direct experience to call upon. This is a hands-on workshop in which I will offer advice on individual resumes. The event is free but obviously, we have limited space, so you must pre-register here. Note that you will need to upload your resume to complete the registration. The Workshop is being held on April 8.

***

I have updated the Events list on the right column of the blog. This is where you learn whether I will be appearing in a city near you. You can check out future and past events here as well.

 



Please comment on the article here: Big Data, Plainly Spoken (aka Numbers Rule Your World)

The post Collaboration with New York Public Library appeared first on All About Statistics.

]]>
/2017/03/27/collaboration-with-new-york-public-library/feed/ 0 /2017/03/27/collaboration-with-new-york-public-library/
Is ODS graphics enabled? Use automatic macro variables to determine the state of SAS http://feedproxy.google.com/~r/statsblogs/~3/NgL03qh5Ay8/ /2017/03/27/is-ods-graphics-enabled-use-automatic-macro-variables-to-determine-the-state-of-sas/#comments Mon, 27 Mar 2017 09:28:21 +0000 Rick Wicklin http://blogs.sas.com/content/iml/?p=18749

Did you know that you can check a SAS macro variable to see if ODS graphics is enabled? The other day I wanted to write a SAS program that creates a graph only if ODS graphics is enabled. The solution is to check the SYSODSGRAPHICS macro variable, which is automatically [...]

The post Is ODS graphics enabled? Use automatic macro variables to determine the state of SAS appeared first on The DO Loop.

The post Is ODS graphics enabled? Use automatic macro variables to determine the state of SAS appeared first on All About Statistics.

]]>
(This article was originally published at The DO Loop, and syndicated at StatsBlogs.)

Did you know that you can check a SAS macro variable to see if ODS graphics is enabled? The other day I wanted to write a SAS program that creates a graph only if ODS graphics is enabled. The solution is to check the SYSODSGRAPHICS macro variable, which is automatically updated by the SAS system whenever ODS graphics is enabled or disabled. (Thanks to Warren Kuhfeld for this tip!) The SYSODSGRAPHICS variable has the value 0 for "off" and 1 for "on."

For example, the following SAS/IML program checks to see if ODS graphics is on. If so, it creates a bar chart of a categorical variable. If not, it computes the count for each category and prints a frequency table:

ods graphics on;         /* -OR-  ods graphics off */
proc iml;
use sashelp.cars;  read all var "Origin";  close;
 
if &SYSODSGRAPHICS then  /* is ODS graphics enabled? */
   call bar(Origin);     /* optionally display a graphical summary */
/* always display a tabular summary */
call tabulate(Categories, Counts, Origin);
print Counts[colname=Categories];

The SYSODSGRAPHICS automatic macro variable is a recent addition to the automatic macro variables in SAS. You can read Rick Langston's 2015 paper to discover other (relatively) new macro features in SAS 9.3 and SAS 9.4.

SAS has many other automatic macro variables. In general, you can use automatic macro variables in SAS to check the status of the SAS system at run time. Some of my other favorite automatic macro variables (which some people call system macro variables) are the following:

  • SYSERR, SYSERRORTEXT, and SYSWARNINGTEXT: Provide information about errors and warnings from SAS procedures. In my book Statistical Programming with SAS/IML I show how to use these macro variables in conjunction with the SUBMIT/ENDSUBMIT statements in SAS/IML.
  • SYSVER and SYSVLONG: Provide information about your version of SAS. You can use these macro variables to execute newer, more efficient, code if the user has a recent version of SAS.
  • SYSSCP and SYSSCPL: Provide information about the operating system. For example, is SAS running on Windows or Linux?

Do you have a favorite automatic variable? Leave a comment and tell me how you use automatic variables in your SAS programs.

The post Is ODS graphics enabled? Use automatic macro variables to determine the state of SAS appeared first on The DO Loop.



Please comment on the article here: The DO Loop

The post Is ODS graphics enabled? Use automatic macro variables to determine the state of SAS appeared first on All About Statistics.

]]>
/2017/03/27/is-ods-graphics-enabled-use-automatic-macro-variables-to-determine-the-state-of-sas/feed/ 0 /2017/03/27/is-ods-graphics-enabled-use-automatic-macro-variables-to-determine-the-state-of-sas/