import { LinearRegressionProps } from './linear-regression'; export type SpatialErrorResult = { type: string; dependentVariable: string; independentVariables: string[]; title: string; datasetName: string; weightsId?: string; 'Number of Observations': number; 'Mean Dependent Var': number; 'Number of Variables': number; 'SD Dependent Var': number; 'Degrees of Freedom': number; 'Lag coefficient (Lambda)': number; 'R-squared': number; 'Log Likelihood': number; 'Akaike Info Criterion': number; 'Sigma-Square': number; 'Schwarz Criterion': number; 'SE of Regression': number; 'Variable Coefficients': Array<{ Variable: string; Coefficient: number; 'Std Error': number; 't-Statistic': number; Probability: number; }>; 'DIAGNOSTICS FOR HETEROSKEDASTICITY': { 'BREUSCH-PAGAN TEST': { Test: string; 'Breusch-Pagan DF': number; 'Breusch-Pagan Value': number; 'Breusch-Pagan Probability': number; }; }; 'DIAGNOSTICS FOR SPATIAL DEPENDENCE': { 'LIKELIHOOD RATIO TEST': { Test: string; 'Likelihood Ratio DF': number; 'Likelihood Ratio Value': number; 'Likelihood Ratio Probability': number; }; }; }; /** * Perform a spatial error regression analysis using maximum likelihood estimation. * * ## Example * ```typescript * import { spatialErrorRegression } from '@geodash/regression'; * * // two independent variables, one dependent variable, and weights * // three observations * const weights = [[1], [0, 2], [0]]; * const weightsValues = [1.0, 1.0, 1.0]; * * const result = await spatialErrorRegression({ * x: [[1, 2, 3], [4, 5, 6]], * y: [1, 2, 3], * weightsId: 'weights', * weights, * weightsValues, * xNames: ['x1', 'x2'], * yName: 'y', * datasetName: 'dataset', * }); * ``` * * @param props - The properties for the spatial error regression. * @param props.x - The independent variables. * @param props.y - The dependent variable. * @param props.weightsId - The id of the weights. * @param props.weights - The weights. * @param props.weightsValues - The values of the weights. * @param props.xNames - The names of the independent variables. * @param props.yName - The name of the dependent variable. * @param props.datasetName - The name of the dataset. * @param props.xUndefs - The undefined values of the independent variables. * @param props.yUndefs - The undefined values of the dependent variable. * @returns The result of the spatial error regression. */ export declare function spatialError({ x, y, weightsId, weights, weightsValues, xNames, yName, datasetName, xUndefs, yUndefs, }: LinearRegressionProps): Promise; export declare function printSpatialErrorResultUsingMarkdown(report: SpatialErrorResult): string;