<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Piers Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>Piers Tracker</description>
    <pubDate>Sun, 19 Apr 2026 05:21:50 GMT</pubDate>
    <dc:date>2026-04-19T05:21:50Z</dc:date>
    <item>
      <title>Undirected Network Models - The Gaussian graphical model (partial correlation networks)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Undirected-Network-Models-The-Gaussian-graphical-model-partial/m-p/951977#M372104</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that the above mentioned network models can be computed in R, with which I am not familiar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know is the same kinds of network models can be computed in SAS, please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, could you kindly point me in the right direction&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Piers&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Undirected-Network-Models-The-Gaussian-graphical-model-partial/m-p/951977#M372104</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2024-11-26T19:38:27Z</dc:date>
    </item>
    <item>
      <title>Combined within and between subjects multivariate multiple regression - can a single model suffice?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combined-within-and-between-subjects-multivariate-multiple/m-p/924803#M45938</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two datasets addressing essentially the same question about ideal body shape and body composition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the first, between subjects dataset (BETWEEN), participants are assigned to one of three experimental groups: personal ideal body shape (PERS), cultural ideal body shape (CULT), and most attractive body shape (ATT). In each group, participants judge images of body composition that fit the requirements of that condition. Then, the average muscle and adipose are calculated from their decisions. We also gather information about 2 covariates: the age and actual body mass index (BMI) of the participant.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the second, within subjects dataset (WITHIN), each participant makes judgements about all&amp;nbsp; three conditions: personal ideal body shape (PERS), cultural ideal body shape (CULT), and most attractive body shape (ATT). The average body composition for the bodies in each of the three conditions is computed for each participant, and the same covariates, age and BMI obtained.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is relatively straight forward to carry out appropriately structured MANCOVA style analyses using PROC GLM, separately for the BETWEEN and WITHIN datasets. But this means that I cant directly assess the potential effect of sample type - i.e. WITHIN versus BETWEEN. There are reasons to do with psychological biases that I would like to estimate this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, does anyone know if I can build a single model for the multivariate output (each decision about body composition renders both an adipose a skeletal muscle value), which&amp;nbsp; incorporates sample type as a fixed effect, along with condition (PERS, CULT, and ATT), and the two covariates. I imagine that at least one difficult bit is structuring the random effects correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom line, I would be extremely grateful to anyone who can provide expert advice on this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Piers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 11:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combined-within-and-between-subjects-multivariate-multiple/m-p/924803#M45938</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2024-04-18T11:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting large simulation into a loop, to avoid large datasets and running out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/738103#M230185</link>
      <description>&lt;P&gt;Very many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that once I could access a stable disc space area, this simulation works fine using data steps and by statements only - its also quite efficient, even though generating datasets with 3,255,000,000 rows to be fed into the regression model. This only takes ~30mins&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/738103#M230185</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-30T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting large simulation into a loop, to avoid large datasets and running out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/737273#M229834</link>
      <description>&lt;P&gt;I have been reading Rick Wicklin's advice, and he is all for avoiding macros, preferring if possible data steps with BY statements. So I have tried to revert to this approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/737273#M229834</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-27T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need more disc space for a simulation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-more-disc-space-for-a-simulation/m-p/737239#M229821</link>
      <description>&lt;P&gt;I could try drive G: which also has more space than C:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drive F: has been assigned to be my google drive and I has had odd problems with read/write access for SAS using this drve before, for reasons that are very opaque&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 12:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-more-disc-space-for-a-simulation/m-p/737239#M229821</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-27T12:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting large simulation into a loop, to avoid large datasets and running out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/737167#M229781</link>
      <description>&lt;P&gt;Hi Reeza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very many thanks for this. But as a complete newbie to these kinds of approaches, I am struggling to find what I assume is a bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a modified version of my original script with only 10 replications per matrix, and only 10 datapoints per iteration of proc simnorm. It includes your code as well, but runs much more quickly as the dataset is so much smaller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I succeed apparently in creating both the Macro_param_list and the Run_macros steps if I keep the&amp;nbsp; &amp;nbsp; &amp;nbsp; call execute(str);&amp;nbsp; &amp;nbsp; commented out. I show a short screen shot of the latter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Piers_0-1619500569512.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58715iF57C1B3E248A3973/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Piers_0-1619500569512.png" alt="Piers_0-1619500569512.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I include&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;call execute(str);&amp;nbsp; &amp;nbsp; &amp;nbsp; by uncommenting it, I get the following sets of errors. First:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG1.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58716i3CA798B953E5B3B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG1.PNG" alt="IMG1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;So, somehow the rep part is problematic - or the reference to it, although it does get to the end of the list, where 6510 observations are read, which is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58717iAF41090202CB174E/image-dimensions/600x390?v=v2" width="600" height="390" role="button" title="IMG2.PNG" alt="IMG2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;It is very clear that the regressions are being run, but the datasets created for each regression are empty. Also, the filenames for each data set only contain REP_1, REP_2 etc. The Filenames do not contain information about the MTX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have time to take a second look I would be very grateful. After about 3 hours or so, I just cant spot what the error is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 05:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/737167#M229781</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-27T05:44:17Z</dc:date>
    </item>
    <item>
      <title>Converting large simulation into a loop, to avoid large datasets and running out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/737031#M229722</link>
      <description>&lt;P&gt;Hello - again&lt;/P&gt;&lt;P&gt;Attached is a script where I:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) generate all conceivable covariance matrices for a regression model A = B + C + B*C&lt;/P&gt;&lt;P&gt;2) strip out any matrix that does not have a positive determinant&lt;/P&gt;&lt;P&gt;3) re-configure the data into Type = COV form to submit to PROC SIMNORM&lt;/P&gt;&lt;P&gt;4) run the regressions on the dataset created by PROC SIMNORM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason for this is that I would like to know if there are parts of the covariance space which might give rise to significant (p &amp;lt; .05) interaction terms, even though the data are derived from normal distributions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Experienced programmers will be giggling by now because they will have predicted that I am generating huge datasets, and that PROC REG runs out of memory in the attempt to sore the output as a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I am seeking help as to how to recode this script so that the very large data sets can be avoided (ideally I would like to have 10k duplications of each of the 651 covariance matrices, and to run each rgression on 10k data points), and proc reg does not run out of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help&amp;nbsp; would be very gratefully received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers C&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 16:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-large-simulation-into-a-loop-to-avoid-large-datasets/m-p/737031#M229722</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-26T16:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need more disc space for a simulation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-more-disc-space-for-a-simulation/m-p/736982#M229707</link>
      <description>&lt;P&gt;Goodness me - so straightforward&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tested the first step in my script, and the first data set was stored in the new location just fine (I renamed the library to be called PLCTEMP).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in the explorer view, I notice that if I try to renew or delete the datafile it wont let me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: A lock is not available for PLCTEMP.RAW.DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Presumably this has to do with write/read permission.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this solvable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best, and very many thanks so far&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 13:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-more-disc-space-for-a-simulation/m-p/736982#M229707</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-26T13:13:36Z</dc:date>
    </item>
    <item>
      <title>Need more disc space for a simulation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-more-disc-space-for-a-simulation/m-p/736953#M229696</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a numerical simulation with PROC SIMNORM which is trying to create a large data set that has 6 columns as output. The input is a dataset with 26,040,000 rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SIMNORM appears to be handling it well until it runs out of work space. So, I would like to know how to redirect SAS where it writes the temporary work files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I have 1.4Tb available on another disc (F: drive), and would like to try to use this instead of the default which is on the C: drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have admin rights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help very gratefully received&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 12:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-more-disc-space-for-a-simulation/m-p/736953#M229696</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-26T12:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble creating Type = COV dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-creating-Type-COV-dataset/m-p/736821#M229619</link>
      <description>Wow - very many thanks. The reason for doing this is to try and discover under what covariance conditions the regression model A = B + C + B*C gives a potentially significant interaction terms even though A, B, and C are derived from multivariate normal distributions. You have really been astonishingly helpful&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;&lt;BR /&gt;Piers</description>
      <pubDate>Sun, 25 Apr 2021 10:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-creating-Type-COV-dataset/m-p/736821#M229619</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-25T10:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble creating Type = COV dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-creating-Type-COV-dataset/m-p/736758#M229589</link>
      <description>&lt;P&gt;Many thanks for this. Its enormously helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not a mathematician, and therefore need to understand more about matrix determinants. So, if you have time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Could you point me in the direction of a sensible reference which lays out what the important issues are&lt;/P&gt;&lt;P&gt;2) Do you have SAS code which allowed you to calculate the determinant from the data structure I have, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 16:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-creating-Type-COV-dataset/m-p/736758#M229589</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-24T16:59:59Z</dc:date>
    </item>
    <item>
      <title>Trouble creating Type = COV dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-creating-Type-COV-dataset/m-p/736741#M229579</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate some help with the SAS code I attach. What I want to do is to create a dataset consistent with the Type = COV structure, to be read into PROC SIMNORM. I attach the code used to create the dataset. However, I get the following error message when I ask PROC SIMNORM to read the dataset scov :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Invalid covariance or conditional covariance matrix; matrix is not positive definite.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.SSIM may be incomplete. When this step was stopped there were 1900&lt;BR /&gt;observations and 5 variables.&lt;BR /&gt;WARNING: Data set WORK.SSIM was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I do not understand what I have done wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be deeply appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 12:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-creating-Type-COV-dataset/m-p/736741#M229579</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2021-04-24T12:50:11Z</dc:date>
    </item>
    <item>
      <title>PROC Mixed for EEG time series comparison</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-for-EEG-time-series-comparison/m-p/621624#M29944</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have individual time series data from 32 EEG channels. In the data, time runs from -200ms to 800ms. Zero is where a stimulus is presented. Two groups of subjects (10 patients v 20 controls) carried out four experimental conditions. My data have been averaged across trials, separately for each group, participant and condition. In other words, for each participant I have a separate time series for each condition, which has been averaged across trials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For individual EEG channels I want to overplot the average EEG signal for both groups (on the y-axis) as a function of time (from -200 to 800ms, in 10ms increments), and indicate where in time the two time series are statistically significantly different from each other - i.e. effectively a set of multiple pairwise comparisons, one for each time point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, to deal with the fact that we have a repeated measures design, I have used PROC MIXED as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods output diffs = diff;&lt;BR /&gt;PROC MIXED DATA=mlm2 COVTEST METHOD=ML;&lt;BR /&gt;&amp;nbsp;CLASS sub group time;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; MODEL EEGdata = group time group*time / SOLUTION&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OUTP=pred;&lt;BR /&gt;&amp;nbsp; RANDOM INTERCEPT / SUBJECT=sub TYPE= un;&lt;BR /&gt;&amp;nbsp; LSMEANS group*time / diff;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data subset; set diff;&lt;BR /&gt;&amp;nbsp;if group = _group then delete;&lt;BR /&gt;&amp;nbsp;if time ^= _time then delete;&lt;BR /&gt;&amp;nbsp;timepoint_id = group||_group||time1;&lt;BR /&gt;&amp;nbsp;raw_p = Probt;&lt;BR /&gt;&amp;nbsp; keep timepoint_id raw_p;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc multtest inpvalues=subset holm hoc fdr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The general idea was to use LSmeans to get a set of pairwise comparisons which would give me a complete set of uncorrected t-tests. Then select the ones I want and run those p-values through proc multtest to do the statistical corrections. I would have liked to use the slice option, but could not find a way to obtain adjustments for the p-values, directly, so I settled on this rather clumsy route. I know you can use the adjust option in the lsmeans statement, but the only way I could think of using this to prevent computing all pairwise comparisons (thereby obtaining a very conservative adjustment as a result), was to use the lsmestimate route - but coding that looked horrific with 100 time points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In summary:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Does anyone see an objection to the&amp;nbsp; use of proc mixed to run the basic model in this way?&lt;/P&gt;&lt;P&gt;2) I am aware that taking account of autocorrelation in the data would be ideal, but including a random effect like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; random intercept time / subject=sub type=ar(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; caused the models to run forever, even when I resampled the timeseries to a much coarser scale. This also made me think that I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; might be doing something wrong.&lt;/P&gt;&lt;P&gt;3) Are there better / smarter / more elegant ways of obtaining the pairwise comparisons I am seeking.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bottom line, help needed please ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers C&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 11:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-for-EEG-time-series-comparison/m-p/621624#M29944</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2020-02-01T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bidimensional regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590419#M28862</link>
      <description>So - no SAS specific luck with lexjansen.com or sas.com. Generic internet searched do return hits, but this is with the R package, as I said before. I wonder if there is another term for it?&lt;BR /&gt;P</description>
      <pubDate>Fri, 20 Sep 2019 14:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590419#M28862</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2019-09-20T14:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bidimensional regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590417#M28861</link>
      <description>I will have a go ... and thanks for your help, P</description>
      <pubDate>Fri, 20 Sep 2019 14:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590417#M28861</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2019-09-20T14:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bidimensional regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590353#M28858</link>
      <description>&lt;P&gt;Dear Paige&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen these papers, and they are a) very mathematical, and b) do not clearly outline how SAS has been used to implement their routines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence I was wondering whether there might be SAS technical reports, or, dare I hope, worked examples using bidimensional regression in SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 12:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590353#M28858</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2019-09-20T12:25:38Z</dc:date>
    </item>
    <item>
      <title>Didimensional regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590317#M28856</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if its possible to use the SAS procedures to run bidimensional regression, as originally described by WR Tobler (1994).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At a push I can imagine there might be a SAS macro for this, but so far I have not managed to find anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware of an R package 'BiDimRegression',&amp;nbsp; but would prefer to use SAS if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for any help with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piers C&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 10:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Didimensional-regression/m-p/590317#M28856</guid>
      <dc:creator>Piers</dc:creator>
      <dc:date>2019-09-20T10:44:46Z</dc:date>
    </item>
  </channel>
</rss>

