retain(3f) - [M_datapac:VECTOR_OPERATION] retain all observations in a vector within a user-specified interval
Synopsis
Description
Options
Examples
Author
Maintainer
License
SUBROUTINE RETAIN(X,N,Xmin,Xmax,Newn)
RETAIN(3f) retains all observations in the REAL vector X which are inside the closed (inclusive) interval defined by XMIN and XMAX, while deleting all observations outside of this interval.Thus all observations in X which are smaller than XMIN or larger than XMAX are deleted from X. RETAIN(3f) (and the REPLAC and DELETE subroutines) gives the data analyst the ability to easily clean up a data set which has missing and/or outlying observations so that a more appropriate subsequent data analysis may be performed. For example, a trimmed sample can easily be constructed by use of RETAIN(3f).
X description of parameter Y description of parameter
Sample program:
program demo_retain use M_datapac, only : retain implicit none ! call retain(x,y) end program demo_retainResults:
The original DATAPAC library was written by James Filliben of the Statistical Engineering Division, National Institute of Standards and Technology.
John Urban, 2022.05.31
CC0-1.0
Nemo Release 3.1 | retain (3) | February 23, 2025 |