curve fitting toolbox F test ?

3 ビュー (過去 30 日間)
EK
EK 2019 年 12 月 4 日
編集済み: Navya Seelam 2019 年 12 月 11 日
Is it possible to extract/calculate the F test p-values from the output of a curve fitting toolbox?
  1 件のコメント
Navya Seelam
Navya Seelam 2019 年 12 月 9 日
Hi,
What is the function you are using in the curve fitting tool box?

サインインしてコメントする。

回答 (3 件)

EK
EK 2019 年 12 月 9 日
I am using linear fit and sigmoid (custom)

Navya Seelam
Navya Seelam 2019 年 12 月 10 日
編集済み: Navya Seelam 2019 年 12 月 11 日
Hi,
You can use fitlm to extract p-values. The summary statistics of the model inlcudes p-value for the F-test on the model.
Please refer this link for more details.

EK
EK 2019 年 12 月 10 日
Hi Navya
thank you very much for your suggestion. I do not understand how can I apply filtm function to my fitting parameter?
Below is a function I am using generated by fittin toolbox
function [fitresult, gof] = createFit(x, y)
%CREATEFIT(X,Y)
% Create a fit.
%
% Data for 'Sigmoid fit 1' fit:
% X Input : x
% Y Output: y
% Output:
% fitresult : a fit object representing the fit.
% gof : structure with goodness-of fit info.
%% Fit: 'Sigmoid fit 1'.
[xData, yData] = prepareCurveData( x, y );
% Set up fittype and options.
ft = fittype( '1./(1 + exp(-a.*(x-c)))', 'independent', 'x', 'dependent', 'y' );
opts = fitoptions( 'Method', 'NonlinearLeastSquares' );
opts.Display = 'Off';
opts.StartPoint = [0.77548254396942 0.353883903104256];
% Fit model to data.
[fitresult, gof] = fit( xData, yData, ft, opts );
% Plot fit with data.
figure( 'Name', 'Sigmoid fit 1' );

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by