How to use the level.predict function in level

To help you get started, we’ve selected a few level examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github idrdex / star-django / frontend / app / analysis / index.js View on Github external
md: data['TE.random'],
            left: data['lower.random'],
            right: data['upper.random'],
            experimentalTotal: _.sum(_.map(series, 'experimental.total')),
            controlTotal: _.sum(_.map(series, 'control.total')),

        },
        {
            type: 'Prediction interval',
            md: 0,
            left: data['lower.predict'],
            right: data['upper.predict'],
        },
    ];

    draw(elem, width, series, effects, data['level.predict']);
};
github idrdex / star-django / static / plots.html View on Github external
title: "SD",
        getter: d => f2format(d.control.sd),
        x: leftLegendScale(98),
    },
];


var rightTable = [
    {
        title: "MD",
        getter: d => f2format(d.md),
        x: rightLegendScale(15),
        effectsPlot: d => f2format(d.md),
    },
    {
        title: p0format(data["level.predict"]) +"-CI",
        getter: d =>"[" + f2format(d.left) + "," + f2format(d.right) + "]",
        x: rightLegendScale(49),
        effectsPlot: d => "[" + f2format(d.left) + "," + f2format(d.right) + "]",
    },
    {
        title: "w(fixed)",
        getter: d => p1format(d.fixedWeight),
        x: rightLegendScale(72),
    },
    {
        title: "w(random)",
        getter: d => p1format(d.randomWeight),
        x: rightLegendScale(100),
    },
]