estimate.ideology: Estimates ideology for a given Twitter user

Description Usage Arguments Author(s) Examples

Description

estimate.ideology estimates ideology for a given user using the Metropolis algorithm developed in Barbera, 2013. It takes as argument of the function a list of user IDs indicating who a given user follows.

Usage

1
2
estimate.ideology(user, friends, verbose = TRUE, iters = 5000,
  n.warmup = 1000, thin = 20)

Arguments

user

screen name of user for which ideology is to be estimated.

friends

vector of user IDs that the user for which ideology wants to be estimated follows

verbose

logical, default is TRUE, which generates some output to the R console with information about progress of the sampler.

iters

number of iterations of the metropolis algorithm. Default is 5000

n.warmup

warmup period for the sampler. Default is 1000 iterations.

thin

thinning of the sampler. Default is 20.

Author(s)

Pablo Barbera pablo.barbera@nyu.edu

Examples

1
2
3
4
5
6
7
## Not run: 
## download list of friends for a given user
 friends <- getFriends(screen_name = "p_barbera", oauth_folder="oauth")
## estimating ideology
 results <- estimate.ideology(friends)

## End(Not run)

SMAPPNYU/smappR documentation built on May 9, 2019, 11:19 a.m.