Thread Subject:
Combine dataset groups in grpstats()

Subject: Combine dataset groups in grpstats()

From: Hoi Wong

Date: 25 Oct, 2012 17:21:08

Message: 1 of 2

I have a dataset like the following which I'd like to group the stats into {'test+training', 'test'} instead of {'training', 'test'} with grpstats().

 DD = dataset( {nominal({'test'; 'training'; 'test'; 'test'; 'training'}), 'classification'}, {[0.3;0.5;0.7;0.9;1.1], 'value'} )

Is there a neat way to do it for overlapping groups?

Subject: Combine dataset groups in grpstats()

From: Tom Lane

Date: 25 Oct, 2012 22:20:05

Message: 2 of 2

> I have a dataset like the following which I'd like to group the stats into
> {'test+training', 'test'} instead of {'training', 'test'} with grpstats().
> DD = dataset( {nominal({'test'; 'training'; 'test'; 'test'; 'training'}),
> 'classification'}, {[0.3;0.5;0.7;0.9;1.1], 'value'} )
>
> Is there a neat way to do it for overlapping groups?

If the computing time is not excessive, you may find it makes best use of
your own time to compute the statistics once for the full data set, then
again for the two groups.

-- Tom

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us