Effacer les filtres
Effacer les filtres

Error while using fitLogLogMSD for Mean Squared Displacement analysis

3 vues (au cours des 30 derniers jours)
Marco Tjakra
Marco Tjakra le 12 Sep 2023
Commenté : Marco Tjakra le 14 Sep 2023
Dear all, I am trying to fit the MSD result to make the loglog curve.
Unfortunately it gives me this error, could anyone help me please?
Thank you!
>> ma = ma.fitLogLogMSD
Fitting 319 curves of log(MSD) = f(log(t)), taking only the first 25% of each curve... 4/ 319Error using cfit/confint
Cannot compute confidence intervals if #observations<=#coefficients.
Error in msdanalyzer/fitLogLogMSD (line 100)
ci = confint( fo );

Réponses (1)

Vedant
Vedant le 12 Sep 2023
In summary, the error message "Cannot compute confidence intervals if #observations<=#coefficients" arises from the mathematical principles and assumptions used in statistical inference. It highlights the need for a sufficient number of observations to estimate the variability of coefficients accurately and compute reliable confidence intervals.
The error message you are seeing indicates that there are fewer observations (data points) than the number of coefficients in your model. Confidence intervals cannot be computed in this case because there is not enough data to estimate the variability of the coefficients.
To resolve this issue, you have a few options:
1. Increase the number of observations: If possible, collect more data points to increase the number of observations. This will provide more information for estimating the coefficients and allow for the computation of confidence intervals.
2. Simplify the model: If your model has a large number of coefficients, consider simplifying it by reducing the number of predictors or using a simpler functional form. This can help ensure that you have enough observations relative to the number of coefficients.
3. Consider alternative methods: If increasing the number of observations or simplifying the model is not feasible, you may need to reconsider the analysis approach. Depending on your specific situation, alternative methods such as resampling techniques (e.g., bootstrapping) or Bayesian inference may be more appropriate for estimating uncertainty in the coefficients.
  2 commentaires
Marco Tjakra
Marco Tjakra le 14 Sep 2023
Dear Vedant,
Thank you for your answer, I will try to put more data and update you about it!
Sincerely,
Marco
Marco Tjakra
Marco Tjakra le 14 Sep 2023
Dear Vedant,
Unfortunately adding more data doesn't seems to resolve the issue... I have manage to get the MSD mean plot though... but when I want to go to the next step with the fitLogLog, it doesn't work unfortunately...
Could you please help me have a look at the code?
Thank you very much for your time and help!
Sincerely,
Marco

Connectez-vous pour commenter.

Catégories

En savoir plus sur Fit Postprocessing dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by