Procedures

ProcedureLocationProcedure TypeDescription
abs fstats_data_columns Interface
acos fstats_data_columns Interface
adjusted_r_squared fstats_regression Function

Computes the adjusted R-squared value for a data set.

Read more…
allan_variance fstats_allan Interface
anova fstats_anova Interface

Performs an analysis of variance (ANOVA) on the supplied data set.

Read more…
asin fstats_data_columns Interface
assignment(=) fstats_glm_types Interface

Copy every component of a glm_options object.

assignment(=) fstats_data_table Interface

Defines deep-copy table assignment and shared view assignment.

atan fstats_data_columns Interface
bartletts_test fstats_hypothesis Subroutine

Computes Bartlett's test statistic and associated probability.

Read more…
beta fstats_special_functions Function

Computes the beta function.

Read more…
bootstrap fstats_bootstrap Function

Performs a bootstrap calculation on the supplied data set for the given statistic. The default implementation utlizes a random resampling with replacement. Other resampling methods may be defined by specifying an appropriate routine by means of the method input. The module provides another option, random_resample, which is a parametric Gaussian bootstrap based on the sample mean and standard deviation. It assumes normally distributed observations. The confidence limits are percentile intervals calculated from the bootstrap replicates.

bootstrap_resampling_routine fstats_bootstrap Interface
bootstrap_statistic_routine fstats_bootstrap Interface
box_muller_sample fstats_sampling Function

Utilizes the Box-Muller transformation approach to generate the requested number of random samples from a normal distribution of the specified mean and standard deviation.

calculate_regression_statistics fstats_regression Function

Computes statistics for the quality of fit for a regression model.

central_composite_design fstats_doe_designs Subroutine

Generates a central composite design in coded variables.

Read more…
central_composite_design_size fstats_doe_designs Subroutine

Computes the size of a central composite design.

Read more…
column_values fstats_helper_routines Function

Copies a column to a work array for the existing array algorithms.

confidence_interval fstats_hypothesis Interface

Computes the confidence interval for the specified distribution.

Read more…
correlation fstats_regression Function

Computes the sample correlation coefficient (an estimate to the population Pearson correlation) as follows.

Read more…
cos fstats_data_columns Interface
covariance fstats_descriptive_statistics Interface
covariance_matrix fstats_regression Function

Computes the covariance matrix where and is computed by design_matrix. Uses an SVD of X, without forming X**T * X. Rank-deficient inputs give the Moore-Penrose covariance; use regression_covariance for rank diagnostics.

Read more…
decode_variables fstats_doe_coding Subroutine

Converts coded variable values (-1, +1) to natural scale.

design_matrix fstats_regression Function

Computes the design matrix for the linear least-squares regression problem of , where is the matrix computed here, is the vector of coefficients to be determined, and is the vector of measured dependent variables.

Read more…
difference fstats_helper_routines Function

Computes the difference between elements in an array.

digamma fstats_special_functions Function

Computes the digamma function.

Read more…
distribution_function fstats_distributions Interface
distribution_property fstats_distributions Interface
distribution_recenter fstats_distributions Interface
doe_compare_models fstats_doe_diagnostics Function

Compares two DOE models using the same data set.

Read more…
doe_design_efficiency fstats_doe_designs Function
doe_design_terms fstats_doe_models Subroutine

Evaluates the model terms (columns of the design matrix) included in a model at each of the supplied factor values.

doe_evaluate_model fstats_doe_models Interface
doe_fit_model fstats_doe_models Function

Fits a Taylor series model to the provided data.

Read more…
doe_model_anova fstats_doe_diagnostics Function

Computes an analysis of variance (ANOVA) table for a DOE model.

Read more…
doe_model_covariance fstats_doe_models Function

Computes the unscaled parameter covariance matrix for a model, where is the design matrix constructed from the supplied factor values. Only the parameters included in the model (map = true) are represented.

doe_model_diagnostics fstats_doe_diagnostics Function

Computes model diagnostics and goodness-of-fit metrics.

Read more…
doe_optimize_rsm fstats_doe_response_surface Function

Optimizes a fitted response surface within a box of factor bounds.

Read more…
doe_predict fstats_doe_prediction Function

Computes predictions with confidence and prediction intervals.

Read more…
doe_predict_enhanced fstats_doe_prediction Function

Computes predictions with confidence and prediction intervals using a user-supplied residual mean squared error. This is equivalent to doe_predict, and is retained for convenience when the residual mean squared error is computed by the caller.

doe_residuals_analysis fstats_doe_diagnostics Function

Computes residual analysis data for model diagnostics.

Read more…
doe_stationary_point fstats_doe_response_surface Subroutine

Computes the stationary point of a quadratic (nway <= 2) response surface in coded variables and classifies its nature.

Read more…
em_impute fstats_missing_data Subroutine

Employs the expectation-maximization (EM) algorithm to compute the maximum-likelihood estimates of the mean vector and covariance matrix of a multivariate normal population from a data set containing missing values. The missing values are then replaced by their conditional expectations given the observed values and the converged parameter estimates.

Read more…
encode_variables fstats_doe_coding Subroutine

Converts natural variable values to coded (-1, +1) scale.

evaluate_model fstats_mcmc Interface
exp fstats_data_columns Interface
f_test fstats_hypothesis Subroutine

Computes the F-test and returns the probability (two-tailed) that the variances of two data sets are not significantly different.

Read more…
factorial fstats_helper_routines Function

Computes the factorial of X.

fractional_factorial fstats_doe_designs Subroutine

Generates a 2-level fractional factorial design.

Read more…
fractional_factorial_size fstats_doe_designs Subroutine

Computes the size of a fractional factorial design.

Read more…
full_factorial fstats_doe_designs Subroutine

Computes a table with values scaled from 1 to N describing a full-factorial design.

Read more…
full_factorial_coded fstats_doe_designs Subroutine

Computes a full-factorial design in coded variables on the range [-1, +1]. Each factor with L levels is assigned L evenly spaced values from -1 to +1 (inclusive). A factor with a single level is assigned a value of 0. For a 2-level factor, the levels are -1 and +1.

gauge_rr fstats_msa Interface

Performs a gauge repeatability and reproducibility (gauge R&R) study by means of the analysis of variance (ANOVA) method.

Read more…
get_full_factorial_matrix_size fstats_doe_designs Subroutine

Computes the appropriate size for a full-factorial design table.

glm_binomial_link_inv fstats_glm_irls Function

Evaluate the logistic inverse link without exponent overflow.

glm_gamma_link_inv fstats_glm_irls Function

Invert the reciprocal Gamma link g(mu) = 1 / mu.

glm_poisson_link_inv fstats_glm_irls Function

Invert the Poisson log link with bounded exponentiation.

ieee_is_finite fstats_data_columns Interface
ieee_is_nan fstats_data_columns Interface
ieee_is_negative fstats_data_columns Interface
ieee_is_normal fstats_data_columns Interface
incomplete_beta fstats_special_functions Function

Computes the incomplete beta function.

Read more…
incomplete_gamma_lower fstats_special_functions Function

Computes the lower incomplete gamma function.

Read more…
incomplete_gamma_upper fstats_special_functions Function

Computes the upper incomplete gamma function.

Read more…
integer_column fstats_data_columns Interface
interp_routine fstats_interp Interface
irls fstats_glm_irls Subroutine

Fit a GLM from initial coefficients. The working response and weights are z = eta + (y - mu) * g'(mu) and W = 1 / (g'(mu)**2 * V(mu)). The implementation solves the equivalent increment problem sqrt(W) X delta = sqrt(W) (z - eta), using column-scaled, pivoted QR rather than normal equations. Weights and right-hand sides are normalized in log space to avoid overflow.

Read more…
is_missing fstats_missing_data Function

Determines if the supplied value represents a missing observation.

iteration_update fstats_regression Interface
jacobian fstats_regression Subroutine

Computes the Jacobian matrix for a nonlinear regression problem.

knn_impute fstats_missing_data Subroutine

Imputes missing values by means of a k-nearest neighbors approach.

Read more…
latin_hypercube_design fstats_doe_designs Subroutine

Generates a Latin hypercube design for factor space exploration.

Read more…
levenes_test fstats_hypothesis Subroutine

Computes Levene's test statistic and associated probability.

Read more…
linear_least_squares fstats_linear_regression Subroutine

Computes a linear least-squares regression to fit a set of data.

Read more…
log fstats_data_columns Interface
log10 fstats_data_columns Interface
log_regularized_beta fstats_special_functions Function

Log regularized beta; invalid inputs or nonconvergence return NaN. The leading factor and complementary branch are evaluated in log space.

log_regularized_gamma_lower fstats_special_functions Function

Log lower gamma ratio; invalid inputs or nonconvergence return NaN.

log_regularized_gamma_upper fstats_special_functions Function

Log upper gamma ratio; invalid inputs or nonconvergence return NaN.

logical_column fstats_data_columns Interface
lowess fstats_smoothing Subroutine

Computes the smoothing of a data set using a robust locally weighted scatterplot smoothing (LOWESS) algorithm. Fitted values are computed at each of the supplied x values.

Read more…
maxval fstats_data_columns Interface
mean fstats_descriptive_statistics Interface

Computes the mean of a set of data.

median fstats_descriptive_statistics Interface
median_absolute_deviation fstats_robust_statistics Interface
minval fstats_data_columns Interface
missing_value fstats_missing_data Function

Returns the value used to flag a missing observation. The value is an IEEE quiet NaN.

multiple_impute fstats_missing_data Subroutine

Generates multiple completed copies of a data set containing missing values by means of Bayesian data augmentation under a multivariate normal model with the noninformative Jeffreys prior.

Read more…
multivariate_distribution_function fstats_distributions Interface
nonlinear_least_squares fstats_levenberg_marquardt Subroutine

Performs a nonlinear regression to fit a model using a version of the Levenberg-Marquardt algorithm.

operator(*) fstats_data_columns Interface
operator(+) fstats_data_columns Interface
operator(-) fstats_data_columns Interface
operator(/) fstats_data_columns Interface
pool_imputations fstats_missing_data Subroutine

Combines the results of the analyses of multiply-imputed data sets by means of Rubin's rules.

pooled_variance fstats_descriptive_statistics Interface

Computes the pooled estimate of variance.

probability_log fstats_distributions Function

Computes a log density or probability with explicit zero handling.

product fstats_data_columns Interface
quantile fstats_descriptive_statistics Interface
r_squared fstats_regression Function

Computes the R-squared value for a data set.

Read more…
random_resample fstats_bootstrap Subroutine

Parametric Gaussian resampling using the sample mean and standard deviation. This assumes the observations are normally distributed; it is not the nonparametric bootstrap.

random_resample_circular_blocks fstats_bootstrap Subroutine

Resamples a time series using a circular moving-block bootstrap. The block length is floor(sqrt(n)), with a minimum of two when possible. Define a custom callback to use a domain-specific block length.

random_resample_clusters fstats_bootstrap Subroutine

Resamples balanced clusters with replacement. The input stores contiguous records as [cluster_id, value], with every cluster having the same number of records. The statistic routine should use the value fields and ignore the cluster identifiers.

random_resample_paired fstats_bootstrap Subroutine

Resamples paired observations with replacement. The input stores each pair as adjacent values: [x1, y1, x2, y2, ...].

random_resample_with_replacement fstats_bootstrap Subroutine

Random resampling with replacement from the supplied sample.

read_delimited_table fstats_data_table_io Subroutine

Reads a delimited text file into a data_table.

Read more…
real_column fstats_data_columns Interface
regression_covariance fstats_regression Subroutine

Computes the unscaled regression covariance using an SVD of X itself. Singular directions below MAX(M, N) * EPSILON * largest singular value are discarded, giving the Moore-Penrose covariance on identifiable directions. Rank-deficient fits require care: a zero pseudocovariance along a discarded direction does not imply that the corresponding parameter is known exactly.

regression_function fstats_regression Interface
regularized_beta fstats_special_functions Function

Computes the regularized beta function.

Read more…
regularized_gamma_lower fstats_special_functions Function

Computes the regularized lower incomplete gamma function.

Read more…
regularized_gamma_upper fstats_special_functions Function

Computes the regularized upper incomplete gamma function.

Read more…
rejection_sample fstats_sampling Function

Uses rejection sampling to randomly sample a target distribution.

sample_chains fstats_mcmc Subroutine

Samples independent chains concurrently using OpenMP. Initialize each target independently, with no shared mutable state in distributions, models, proposals, or sampler callbacks. The compiler runtime must provide thread-safe RANDOM_NUMBER (as GNU Fortran does). Random streams and reproducibility depend on the compiler runtime and thread scheduling; no per-chain seed guarantee is provided.

sample_normal_multivariate fstats_sampling Function

Samples a multivariate normal distribution such that , where is the lower form of the Cholesky factorization of the covariance matrix, and is a randomly generated vector that exists on the set

sample_size fstats_hypothesis Function

Estimates the sample size required to achieve an experiment with the desired power and significance levels to ascertain the desired difference in parameter.

Read more…
sin fstats_data_columns Interface
size fstats_data_columns Interface
softplus fstats_distributions Function

Computes log(1 + exp(value)) without overflowing the exponential.

sqrt fstats_data_columns Interface
stable_expm1 fstats_special_functions Function

Computes exp(x) - 1 without subtractive cancellation near zero.

stable_log1p fstats_special_functions Function

Computes log(1 + x) accurately when x is near zero.

standard_deviation fstats_descriptive_statistics Interface
string_column fstats_data_columns Interface
sum fstats_data_columns Interface
t_test_equal_variance fstats_hypothesis Subroutine

Computes the 2-tailed Student's T-Test for two data sets of assumed equivalent variances.

Read more…
t_test_paired fstats_hypothesis Subroutine

Computes the 2-tailed Student's T-Test for two paired data sets.

Read more…
t_test_unequal_variance fstats_hypothesis Subroutine

Computes the 2-tailed Student's T-Test for two data sets of assumed non-equivalent variances.

Read more…
tan fstats_data_columns Interface
trimmed_mean fstats_descriptive_statistics Interface
tukey_biweight_irls_weight fstats_robust_statistics Function

Computes Tukey's biweight IRLS weight for a standardized residual. The positive tuning constant k defaults to 4.685.

tukey_biweight_psi fstats_robust_statistics Function

Computes Tukey's biweight score function for a standardized residual. The positive tuning constant k defaults to 4.685.

tukey_biweight_rho fstats_robust_statistics Function

Computes Tukey's biweight rho loss for a standardized residual. The positive tuning constant k defaults to 4.685.

variance fstats_descriptive_statistics Interface
write_delimited_table fstats_data_table_io Subroutine

Writes a data_table to a delimited text file, replacing any existing file.

Read more…