tracePlot: Displays trace plots of MCMC chains

Description Usage Arguments Author(s) Examples

View source: R/twideology-functions.R

Description

Displays trace plots of MCMC chains

Usage

1
tracePlot(results, par = "theta")

Arguments

results

object of class 'twideology'

par

parameter for which trace plot is to be displayed

Author(s)

Pablo Barbera pablo.barbera@nyu.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
## Creating OAuth token
 my_oauth <- list(consumer_key = "CONSUMER_KEY",
   consumer_secret = "CONSUMER_SECRET",
   access_token="ACCESS_TOKEN",
   access_token_secret = "ACCESS_TOKEN_SECRET")
## download list of friends for a given user
 friends <- getFriends(screen_name = "p_barbera", oauth=my_oauth)
## estimating ideology
 results <- estimateIdeology(user, friends)
## summary
 summary(results)
## trace plot
 tracePlot(results, "theta")
## ideology plot
 plot(results)

## End(Not run)

lingeringcode/tweetscoresmod documentation built on Feb. 18, 2020, 5:28 p.m.