Giter Club home page Giter Club logo

eisenrep's Introduction

eisenrep

This R-Package calculates the Reputation of a Subject following the methods developed by Eisenegger (2005). An English description of the method is available in this discussion paper.

The Index is calculated with the following formula:

Formula of Reputationindex (Eisenegger, 2005)

where g is the factor used for weighting, P are the positively and N the negatively rated elements (eg. articles/texts/tweets) and n is the total sample. The index can take values from -100 to +100.

Installation

# The easiest way to get eisenrep is to install it from Github:
devtools::install_github("LTribelhorn/eisenrep")

# and load it into the environment
library(eisenrep)

If the devtools are not already installed these need to be installed first with:

install.packages("devtools")
library(devtools)

Usage

The Input needs to be a dataframe containing texts (eg. Tweets, Articles, etc.) or their corresponding IDs, their rating ("positiv", "negativ", "ambivalent" or "neutral") and optionally a column with numeric values used as weigth (eg. Nr of Retweets, Nr of Recipients, Centrality of Agent, etc.).

eisenrep(df, rating, followers_count)
#> [1] "The weighted Reputationindex (following Eisenegger, 2005) is 6.97397566612722."
#> [1] "The unweighted Reputationindex (following Eisenegger, 2005) is -53.3333333333333."
#> $gRepIndex
#> [1] 6.973976
#> 
#> $RepIndex
#> [1] -53.33333

rep <- eisenrep(df, rating, followers_count)
#> [1] "The weighted Reputationindex (following Eisenegger, 2005) is 6.97397566612722."
#> [1] "The unweighted Reputationindex (following Eisenegger, 2005) is -53.3333333333333."

eisenrep(df, rating)
#> [1] "The unweighted Reputationindex (following Eisenegger, 2005) is -53.3333333333333."
#> $RepIndex
#> [1] -53.33333

Getting help

If you encounter a bug, please file a minimal reproducible example on github. If you have a feature request please file an issue as well. If you have questions or encounter problems, please contact me via Email, via Twitter, or send a pigeon over.

eisenrep's People

Contributors

ltribelhorn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.