Skip to content

vis.speed.speed_nested_f

  SPEED.FIT.SPEED_NESTED_F  Perform F-test on Speed vs. No-Speed models.

    P = SPEED.FIT.SPEED_NESTED_F(N_OBS, RSS_FULL, RSS_REDUCED)

    Compares a full model (Speed, 7 params) against a reduced model
    (No Speed, 6 params) using a nested F-test.

    Inputs:
      n_obs       : Number of data points (response vector length).
      rss_full    : Residual Sum of Squares (SSE) of the full model (with speed).
      rss_reduced : Residual Sum of Squares (SSE) of the reduced model (no speed).

    Outputs:
      p_value     : The probability of observing this F-statistic if the
                    null hypothesis (reduced model) were true.