0% found this document useful (0 votes)
64 views1 page

Num Filter Condition

This document describes 6 different ways to filter or subset data based on certain criteria: 1) Above or below the mean of the data; 2) Within the minimum and maximum values after discarding the min and max; 3) Within 3 standard deviations of the mean; 4) Within the 95% confidence interval of the mean; 5) Between the 10th and 90th percentiles of the data; 6) Between the first and third quartiles of the data.

Uploaded by

Sinisa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views1 page

Num Filter Condition

This document describes 6 different ways to filter or subset data based on certain criteria: 1) Above or below the mean of the data; 2) Within the minimum and maximum values after discarding the min and max; 3) Within 3 standard deviations of the mean; 4) Within the 95% confidence interval of the mean; 5) Between the 10th and 90th percentiles of the data; 6) Between the first and third quartiles of the data.

Uploaded by

Sinisa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

[Above Average]

x;
#x>mu;
#double mu=mean(x);

[Below Average]
x;
#x<mu;
#double mu=mean(x);

[Discard Min and Max (Modified Mean)]


x;
#x>dmin and x<dmax;
#double dmax, dmin;
dmax = max(x);
dmin = min(x);

[Within 3-Sigma Band]


x;
#x>=lcl and x<=ucl;
#double mu, std, lcl, ucl;
mu=mean(x);
std=stddev(x);
lcl=mu-3*std;
ucl=mu+3*std;

[Within 95% CI]


x;
#x>=lcl and x<=ucl;
#double mu, std, tc, lcl, ucl;
int nx;
stats ix:=x mean:=mu sd:=std n:=nx;
tc=tinv(0.975,nx-1);
lcl=mu-std*tc/sqrt(nx);
ucl=mu+std*tc/sqrt(nx);

[Within Interdecile Range (10%-90%)]


x;
#x>=D1 and x<=D9;
#dataset dsp={10,90}, dsx;
dsx = percentile(x, dsp);
double D1=dsx[1];
double D9=dsx[2];

[Within Interquartile Range (Q1-Q3)]


x;
#x>=Q1 and x<=Q3;
#dataset dsp={25,75}, dsx;
dsx = percentile(x, dsp);
double Q1=dsx[1];
double Q3=dsx[2];

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy