replac(3f) - [M_datapac:VECTOR_OPERATION] replace all observations in a vector within a given interval with a user-specified constant
Synopsis
Description
Options
Examples
Author
Maintainer
License
SUBROUTINE REPLAC(X,N,Xmin,Xmax,Xnew)
REPLAC(3f) replaces (with the value XNEW) all observations in the REAL vector X which are inside the closed (inclusive) interval defined by XMIN and XMAX.All observations outside of this interval are left unchanged. Thus all observations in X which are equal to or larger than XMIN and equal to or smaller than XMAX, will be replaced by XNEW.
REPLAC(3f) (and the RETAIN(3f) and DELETE(3f) 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, replacement of an outlier with a more appropriate value can easily be done by REPLAC(3f).
X description of parameter Y description of parameter
Sample program:
program demo_replac use M_datapac, only : replac implicit none ! call replac(x,y) end program demo_replacResults:
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 | replac (3) | February 23, 2025 |