~ubuntu-branches/debian/squeeze/r-cran-pscl/squeeze

« back to all changes in this revision

Viewing changes to man/politicalInformation.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lawrence
  • Date: 2008-10-21 12:18:01 UTC
  • mfrom: (1.1.7 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081021121801-r06kx7izjdrbwpy2
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\name{politicalInformation}
 
2
\alias{politicalInformation}
 
3
\docType{data}
 
4
\title{Interviewer ratings of respondent levels of political information}
 
5
\description{
 
6
  Interviewers administering the 2000 American National Election Studies
 
7
  assigned an ordinal rating to each respondent's "general
 
8
  level of information" about politics and public affairs.
 
9
}
 
10
 
 
11
\usage{data(politicalInformation)}
 
12
 
 
13
\format{
 
14
  A data frame with 1807 observations on the following 8 variables.
 
15
  \describe{
 
16
    \item{\code{y}}{interviewer rating, a factor with levels \code{Very Low} \code{Fairly Low} \code{Average} \code{Fairly High} \code{Very High}}
 
17
    \item{\code{collegeDegree}}{a factor with levels \code{No} \code{Yes}}
 
18
    \item{\code{female}}{a factor with levels \code{No} \code{Yes}}
 
19
    \item{\code{age}}{a numeric vector, respondent age in years}
 
20
    \item{\code{homeOwn}}{a factor with levels \code{No} \code{Yes}}
 
21
    \item{\code{govt}}{a factor with levels \code{No} \code{Yes}}
 
22
    \item{\code{length}}{a numeric vector, length of ANES pre-election
 
23
      interview in minutes}
 
24
    \item{\code{id}}{a factor, unique identifier for each interviewer}
 
25
  }
 
26
}
 
27
 
 
28
\details{
 
29
  Seven respondents have missing data on the ordinal interviewer rating.
 
30
   The covariates \code{age} and \code{length} also have some missing data.
 
31
}
 
32
 
 
33
\source{
 
34
  The National Election Studies (www.electionstudies.org). THE 2000
 
35
  NATIONAL ELECTION STUDY [dataset]. Ann Arbor, MI: University of
 
36
  Michigan, Center for Political Studies [producer and distributor].  
 
37
}
 
38
 
 
39
\references{
 
40
  Jackman, Simon. 2009.  \emph{Bayesian Analysis for the Social
 
41
  Sciences}.  Wiley: Hoboken, New Jersey.
 
42
}
 
43
 
 
44
\examples{
 
45
data(politicalInformation)
 
46
 
 
47
table(politicalInformation$y,exclude=NULL)
 
48
 
 
49
require(MASS)
 
50
op <- polr(y ~ collegeDegree + female + log(age) + homeOwn + govt + log(length),
 
51
           data=politicalInformation,
 
52
           Hess=TRUE,
 
53
           method="probit")
 
54
}
 
55
\keyword{datasets}