rStats.js v1.3.0
    検索インデックスを準備しています...

    Interface FisherTestOptions

    fisherTest のオプション。

    interface FisherTestOptions {
        alternative?: "l" | Alternative | "two" | "g";
        B?: number;
        confInt?: boolean;
        confLevel?: number;
        midp?: boolean;
        or?: number;
        simulatePValue?: boolean;
    }
    Index
    alternative?: "l" | Alternative | "two" | "g"

    対立仮説: "two.sided"、"less"、または "greater"。既定は "two.sided"。曖昧さのない省略形も受け付けます。2 x 2 表でのみ使われます。

    B?: number

    simulatePValue の反復回数。既定は 2000。

    confInt?: boolean

    オッズ比の区間を求めます (2 x 2 表のみ)。既定は true。

    confLevel?: number

    区間の信頼水準 (2 x 2 表のみ)。既定は 0.95。

    midp?: boolean

    2 x 2 表の検定の mid-p 版です (exact2x2::fisher.exact(x, midp = TRUE) と同じ)。p 値と信頼限界は、(1, 1) のセルの mid-p の裾 P(X < x) + P(X = x)/2 と P(X > x) + P(X = x)/2 から求めます。両側 p 値は、小さい方の裾の 2 倍です (central test)。推定値は条件付き最尤推定値のままです。より大きい表ではエラーになります。既定は false。

    or?: number

    帰無仮説の下でのオッズ比 (2 x 2 表のみ)。既定は 1。

    simulatePValue?: boolean

    r x c 表 (2 x 2 より大きい) の p 値を、B 回の反復によるモンテカルロ・シミュレーションで求めます (R の simulate.p.value)。R と同じく setSeed の乱数ストリームを使います。2 x 2 表では無視されます。既定は false。