Calculation dis/agreement for the group is important for collective status statistics and opinion, also matter of interest in physiological and social apps to have an overall view and understanding of students within the group of teenage students about specific social objects with limited choices. In this overview, we define and compare the methods to calculate the dis/agreement. include their JS functions. The whole functions can also be found inside of the GitHub package as a HTML file.

Methods which are selected for this document are :

  1. Dispersion index (DI)
  2. Fleiss’ kappa (Pi section of FK)
  3. Group disagreement (GD):
  4. Entropy-based diversity…

Image for post
Image for post

I want to show you the simplest way that you can integrate it into React.js class:

Installation

To install and save in your package.json dependencies, run:

// with npm
npm install @material-ui/styles
// with yarn
yarn add @material-ui/styles

React Class:

import React, {Component} from "react";
import { styled } from '@material-ui/styles';
import Button from '@material-ui/core/Button';

const MyButton = styled(Button)({
background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)',
border: 0,
borderRadius: 3,
boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)',
color: 'white',
height: 48,
padding: '0 30px',
});
class AprinClass extends Component {
render() {
return (
<MyButton>Styled Components</MyButton>
)
}
}
export default AprinClass;

Farbod Aprin

Java Javascript developer, P.h.D Student in UDE university

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store