|
NORMAL KERNEL DENSITY MIXTUREName:
This command does the following:
<SUBSET/EXCEPT/FOR qualification> where <ymean> is a variable containing laboratory means; <ysd> is a variable containing the standard uncertainties associated with the <ymean> variable; <x> is a variable containing the values where the normal kernel density mixture values are computed; <y> is a variable containing the normal kernel density mixture values; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
LET YKERN XKERN = NORMAL KERNEL DENSITY MIXTURE YMEAN YSD SUBSET TAG = 1
. Step 1: Define the data
. (from David Duewer paper)
.
read ymean ysd
102.02 0.16
102.47 0.84
102.98 0.90
103.69 0.45
104.08 1.16
105.04 0.39
105.36 0.32
107.26 1.50
108.26 0.77
end of data
.
. Step 2: Generate the normal kernel density mixture
.
let y x = normal kernel density mixture ymean ysd
.
. Step 3: Plot the result
.
label case asis
title case asis
title offset 2
x1label Measurement Value
y1label Density
title Normal Kernel Density Mixture for Duewer Data
xlimits 95 115
.
plot y x
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 07/20/2017 | |||||||||||||