generate_user_magnitude: Function for sampling from the powerlaw distribution of user...

View source: R/simulation.R

generate_user_magnitudeR Documentation

Function for sampling from the powerlaw distribution of user influence it is the equivalent of the Richter-Gutenberg distribution in the Helmstetter model the powerlaw distribution was determined from the twitter data, from the #retweets alpha = 2.016, xmin = 1. Draw n values

Description

Function for sampling from the powerlaw distribution of user influence it is the equivalent of the Richter-Gutenberg distribution in the Helmstetter model the powerlaw distribution was determined from the twitter data, from the #retweets alpha = 2.016, xmin = 1. Draw n values

Usage

generate_user_magnitude(n, alpha = 2.016, mmin = 1)

Arguments

n

The number of samples to be generated

alpha

Powerlaw distribution parameters

mmin

Powerlaw distribution parameters

Value

A single number, a random user magnitude

Examples

generate_user_magnitude(n = 1)

behavioral-ds/evently documentation built on Feb. 3, 2023, 9:42 a.m.