rStats.js v1.3.0
    Preparing search index...

    Function aovSummary

    • The table of an analysis of variance fitted by aov. Equivalent to R's summary(). As R's summary(aov(formula, data)) for a fit without Error(): the rows of anova's sequential table, except that without residual degrees of freedom there is no Residuals row and no F value and Pr(>F) columns. For a fit with an Error() term, the tables of the strata ({ strata: [{ stratum: "Error: id", colNames, rowNames, table }, ...] }), without the intercept stratum. As R 4.6, warnings has "essentially perfect fit for ‘1’: summary may be unreliable" where the residual variance of the fit (or of a stratum) is below 1e-30 times the mean square of its fitted values.

      Parameters

      Returns AovStrataSummary

      const fit = aov("y ~ g", { y: [4.2, 5.1, 6.3, 5.8, 7.9, 8.4], g: ["a", "a", "b", "b", "c", "c"] });
      const t = aovSummary(fit);
      t.colNames; // ["Df", "Sum Sq", "Mean Sq", "F value", "Pr(>F)"]
      t.table[0]; // [2, 12.413, 6.2067, 28.427, 0.011221]
    • The table of an analysis of variance fitted by aov. Equivalent to R's summary(). As R's summary(aov(formula, data)) for a fit without Error(): the rows of anova's sequential table, except that without residual degrees of freedom there is no Residuals row and no F value and Pr(>F) columns. For a fit with an Error() term, the tables of the strata ({ strata: [{ stratum: "Error: id", colNames, rowNames, table }, ...] }), without the intercept stratum. As R 4.6, warnings has "essentially perfect fit for ‘1’: summary may be unreliable" where the residual variance of the fit (or of a stratum) is below 1e-30 times the mean square of its fitted values.

      Parameters

      Returns AnovaTable

      const fit = aov("y ~ g", { y: [4.2, 5.1, 6.3, 5.8, 7.9, 8.4], g: ["a", "a", "b", "b", "c", "c"] });
      const t = aovSummary(fit);
      t.colNames; // ["Df", "Sum Sq", "Mean Sq", "F value", "Pr(>F)"]
      t.table[0]; // [2, 12.413, 6.2067, 28.427, 0.011221]
    • The table of an analysis of variance fitted by aov. Equivalent to R's summary(). As R's summary(aov(formula, data)) for a fit without Error(): the rows of anova's sequential table, except that without residual degrees of freedom there is no Residuals row and no F value and Pr(>F) columns. For a fit with an Error() term, the tables of the strata ({ strata: [{ stratum: "Error: id", colNames, rowNames, table }, ...] }), without the intercept stratum. As R 4.6, warnings has "essentially perfect fit for ‘1’: summary may be unreliable" where the residual variance of the fit (or of a stratum) is below 1e-30 times the mean square of its fitted values.

      Parameters

      Returns AnovaTable | AovStrataSummary

      const fit = aov("y ~ g", { y: [4.2, 5.1, 6.3, 5.8, 7.9, 8.4], g: ["a", "a", "b", "b", "c", "c"] });
      const t = aovSummary(fit);
      t.colNames; // ["Df", "Sum Sq", "Mean Sq", "F value", "Pr(>F)"]
      t.table[0]; // [2, 12.413, 6.2067, 28.427, 0.011221]