WOLFRAM

is an option to TemporalData and other functions that controls how to process missing data.

Details

  • A missing data method typically provides methods for how to fill in values that are missing.
  • Typical settings include:
  • Nonedo no processing
    Automaticpick a method automatically
    "name"use a specified method
    {"name",opt1->val1,}use a specified method with particular options
  • Possible settings for "name" include "Interpolation" and "Constant".
  • The missing data methods for individual functions are documented on the corresponding reference pages.

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Fill in missing data values using linear interpolation:

Out[2]=2

Use TemporalData to create a complete path:

Out[4]=4

Fill in missing data values with the mean of available data:

Out[2]=2
Out[5]=5

Scope  (3)Survey of the scope of standard use cases

Use a custom interpolation for filling in missing values:

Out[5]=5
Out[6]=6

Fill missing values by keeping the value from the left:

Out[2]=2

Fill missing values by keeping the value from the right:

Out[3]=3

Compare the time series:

Out[4]=4

Fill missing values with an arbitrary constant:

Out[2]=2
Out[3]=3

Properties & Relations  (4)Properties of the function, and connections to other functions

The setting Automatic will use the ResamplingMethod setting:

Out[2]=2
Out[29]=29
Out[30]=30

The method for handling missing data does not need to match the ResamplingMethod:

Out[31]=31
Out[32]=32

The default missing data method for EventSeries is interpolation of order 0:

Out[2]=2
Out[3]=3
Out[4]=4

The default missing data method for TimeSeries is interpolation of order 1:

Out[2]=2
Out[3]=3
Out[4]=4

The default missing data method for TemporalData is interpolation of order 0:

Out[2]=2
Out[3]=3
Out[4]=4

Possible Issues  (1)Common pitfalls and unexpected behavior

The choice of MissingDataMethod will produce varying results:

Do not specify missing values:

Out[2]=2

Accumulate:

Fill missing values with a constant:

Use interpolation to fill in missing values:

Compare the results:

Out[8]=8
Wolfram Research (2012), MissingDataMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/MissingDataMethod.html.
Wolfram Research (2012), MissingDataMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/MissingDataMethod.html.

Text

Wolfram Research (2012), MissingDataMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/MissingDataMethod.html.

Wolfram Research (2012), MissingDataMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/MissingDataMethod.html.

CMS

Wolfram Language. 2012. "MissingDataMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MissingDataMethod.html.

Wolfram Language. 2012. "MissingDataMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MissingDataMethod.html.

APA

Wolfram Language. (2012). MissingDataMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MissingDataMethod.html

Wolfram Language. (2012). MissingDataMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MissingDataMethod.html

BibTeX

@misc{reference.wolfram_2025_missingdatamethod, author="Wolfram Research", title="{MissingDataMethod}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/MissingDataMethod.html}", note=[Accessed: 19-May-2025 ]}

@misc{reference.wolfram_2025_missingdatamethod, author="Wolfram Research", title="{MissingDataMethod}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/MissingDataMethod.html}", note=[Accessed: 19-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_missingdatamethod, organization={Wolfram Research}, title={MissingDataMethod}, year={2012}, url={https://reference.wolfram.com/language/ref/MissingDataMethod.html}, note=[Accessed: 19-May-2025 ]}

@online{reference.wolfram_2025_missingdatamethod, organization={Wolfram Research}, title={MissingDataMethod}, year={2012}, url={https://reference.wolfram.com/language/ref/MissingDataMethod.html}, note=[Accessed: 19-May-2025 ]}