BookmarkSubscribeRSS Feed
IgnacioFanna
Calcite | Level 5

Hi, I want to run a repeated measures analysis using PROC MIXED with the following syntax:

%macro one(type);

proc mixed cl;
class ambiente bloque fecha;
model NP = ambiente fecha ambiente*fecha/ddfm=satterthwaite;
random block;
repeated fecha/subject=plot type=&type r rcorr;
lsmeans ambiente biotipo ambiente*biotipo/cl diff;

%mend one;
%one(un);
%one(csh);
%one(ar(1));
%one(arh(1));
%one(toep);
%one(toeph);
%one(ante(1));
run;

 

There is an ERROR: 'Variable NP in list does not match type prescribed for this list'. I already checked the NP variable as a numeric variable, but it did not work.

1 REPLY 1
sbxkoenk
SAS Super FREQ

Are you sure PROC MIXED is using the correct data set?

Please use data= option on PROC MIXED statement.

Use the same data= option on a PROC CONTENTS statement and present us with the results :

proc contents data=LIBREF.DataSetName order=varnum;
title 'Contents Using the ORDER= Option';
run;

Koen

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 741 views
  • 0 likes
  • 2 in conversation