Relative Content

Tag Archive for sas

Format dates as sas dates

I’m in a really frustrating situation.
I received a dataset to be analyzed. It contains dates as follows:

How do I create a chart that shows influence diagonistics like the image attached below?

I am analyzing set of datas, consisting of 5 independent variables(x1,x2,x3,x4,x5) and a dependent variable(y), with each variable having 60 data.
When I try to run code below to identify the outliers and influential points, but does not present a graph, and dev and c are not calculated properly. How can I fix the code below to show influence diagnostics like the attached screenshot. Thank you.

Change the order of many variables in sas

I have a number of files I merged to have a single final dataset.
While doing this, sas ordered the variables as follows: n_myvar1_NUM, n_myvar10_NUM, n_myvar11_NUM, ….. I tried to order the dataset with retain function to get the following corrected order: n_myvar1_NUM, n_myvar2_NUM, n_myvar3_NUM etc, but without success.

Run a macro on many files

I have a number of files on which to run a macro. They are approximately 300.
I have to do something like this: