cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

How to include missing values in N using tabulate to build a table

I am trying to create a table showing analysis results and basic statistics for different substances, using tabulate. In the data, there are some missing values coded with *. Those are in fact analysis results below detection limit and should be included in N for correct statistics (i.e."mean" and other)

Is there a way of achieving this without replacing * with 0?

 

For example: In this table there is a count N=3 for "fosfat" and N=4 missing. I would like N to be equal to 7 here.

LoglinearSpaces_1-1699608941131.png

 

jmp file in attachments

 

 

7 REPLIES 7
jthi
Super User

Re: How to include missing values in N using tabulate to build a table

Generally missing values are missing values (and you should treat them like that) and you cannot add them to your N directly. For example if you were to accept that missing values are valid, how would you calculate min, max, mean, median (I would personally calculate them all as missing)?

-Jarmo

Re: How to include missing values in N using tabulate to build a table

That of course is one way of doing it, and by the look of it JMPs prefered solution. But if I would like to include values under LOD in my table when presenting mean and median, is there a simple way of doing that in JMP? Say for example I would like to set the values to LOD/2.

 

 

jthi
Super User

Re: How to include missing values in N using tabulate to build a table

LOD?

 

One way of "including" missing values, is to create categorization column for example "MISSING" and then values are either 0 or 1, for example in your case something like

New Column("RESULTAT_MISSING",
	Numeric, "Nominal", Format("Best", 12),
	Formula(Is Missing(:RESULTAT)),
)

and then try to deal with that

-Jarmo
MRB3855
Super User

Re: How to include missing values in N using tabulate to build a table

Re: How to include missing values in N using tabulate to build a table

Generally, including any values at or below LOD will bias the estimates (statistics) from routines for exact values (e.g., Distribution). The correct way is to use MLE with a distribution model that acknowledges censored values (e.g., Life Distribution). LOD is an example of left-censored data.

Re: How to include missing values in N using tabulate to build a table

Thank you for your input! Is there a way to use JMP for this and present the results correctly in a table?

Re: How to include missing values in N using tabulate to build a table

Start with the JMP documentation for Life Distribution. The terminology is based on reliability engineering because that is the origin of these methods. Still, in the end, it is just modeling a distribution with a sample of censored data.