Displaying 1 result from an estimated 1 matches for "nincidnets".
Did you mean:
incidents
2012 Dec 29
0
thanks -- Re: syntax for identifying more than one
...to generate these descriptive stats for each *combination* of "id" and "year."? I could do that in SAS with the following code
proc means mean std n data=test;
? by id year;
? var incidents;
? output out = testsummary
? ? ? mean = mnincidents
? ? ? std = sdincidents
? ? ? n = nincidnets;
proc print data=testsummary;
Again, thanks for responding to the posted question.
Best wishes,
Greg
<quote author='arun kirshna'>
HI,
You could try that in a list if that is okay.
test<-read.table(text="
id year incidents
100? ? 1? ? ? ? 0
101? ? 1? ? ? ? 1
102? ? 1? ? ?...