Description Usage Arguments Author(s) Examples
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.
1 2  | estimate.ideology(user, friends, verbose = TRUE, iters = 5000,
  n.warmup = 1000, thin = 20)
 | 
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   | 
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.  | 
Pablo Barbera pablo.barbera@nyu.edu
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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.