stimuli: Stimulus extraction function

Description Usage Arguments Value Author(s) See Also Examples

View source: R/basicspace.R

Description

stimuli is a convenience function to extract the stimulus parameters from an aldmck, blackbox, or blackbt object.

Usage

1
  stimuli(object)

Arguments

object

an aldmck, blackbox, or blackbt output object.

Value

The stimuli of the estimated output, which can also be recovered as object$stimuli. Please refer to the documentation of aldmck, blackbox, or blackbox_transpose for specifics.

Author(s)

Keith Poole ktpoole@uga.edu

Howard Rosenthal hr31@nyu.edu

Jeffrey Lewis jblewis@ucla.edu

James Lo lojames@usc.edu

Royce Carroll rcarroll@rice.edu

See Also

'aldmck', 'blackbox', 'blackbox_transpose'.

Examples

1
2
3
4
5
6
7
8
9
data(Issues1980)
Issues1980[Issues1980[,"abortion1"]==7,"abortion1"] <- 8	#missing recode
Issues1980[Issues1980[,"abortion2"]==7,"abortion2"] <- 8	#missing recode

### This command conducts estimates, which we instead load using data()
# Issues1980_bb <- blackbox(Issues1980,missing=c(0,8,9),verbose=FALSE,dims=3,minscale=8)
data(Issues1980_bb)

stimuli(Issues1980_bb)

Example output

Loading required package: tools

## BASIC SPACE SCALING PACKAGE
## 2009 - 2021
## Keith Poole, Howard Rosenthal, Jeffrey Lewis, James Lo, and Royce Carroll
## Support provided by the U.S. National Science Foundation
## NSF Grant SES-0611974

[[1]]
               N     c     w1    R2
libcon1      875 4.280 -3.028 0.414
defense     1163 5.210 -1.754 0.123
govserv     1119 4.323  4.302 0.450
inflation    816 4.106  2.015 0.159
abortion1   1238 2.856  0.627 0.031
taxcut       836 2.839 -1.074 0.055
libcon2      949 4.369 -2.755 0.414
govhelpmin  1160 4.542 -3.400 0.412
russia      1152 3.891 -3.034 0.231
womenrole   1223 2.845 -2.866 0.204
govjobs     1131 4.377 -4.488 0.518
equalrights 1144 2.663 -3.297 0.381
busing      1219 6.051 -2.699 0.255
abortion2   1246 2.675  0.724 0.047

[[2]]
               N     c     w1     w2    R2
libcon1      875 4.300 -2.966  0.954 0.424
defense     1163 5.214 -1.779  0.899 0.147
govserv     1119 4.368  4.331  3.042 0.617
inflation    816 4.152  2.088  2.940 0.393
abortion1   1238 2.856  0.512 -2.211 0.290
taxcut       836 2.818 -1.103 -0.667 0.071
libcon2      949 4.377 -2.758  0.459 0.423
govhelpmin  1160 4.535 -3.456 -0.119 0.424
russia      1152 3.887 -3.140  0.241 0.247
womenrole   1223 2.872 -2.466  6.007 0.771
govjobs     1131 4.350 -4.595 -2.417 0.635
equalrights 1144 2.673 -3.148  2.438 0.491
busing      1219 6.049 -2.741  0.059 0.263
abortion2   1246 2.676  0.629 -2.112 0.318

[[3]]
               N     c     w1     w2     w3    R2
libcon1      875 4.294 -2.976  0.708 -1.180 0.448
defense     1163 5.200 -1.806  1.586  2.562 0.315
govserv     1119 4.410  4.295  3.707  2.929 0.778
inflation    816 4.169  1.998  3.286  1.111 0.451
abortion1   1238 2.856  0.497 -2.004  1.174 0.312
taxcut       836 2.813 -1.049 -0.902 -0.891 0.091
libcon2      949 4.367 -2.785  0.265 -0.557 0.437
govhelpmin  1160 4.534 -3.457  0.140  0.961 0.440
russia      1152 3.831 -3.255  1.558  5.590 0.695
womenrole   1223 2.891 -2.372  5.602 -2.868 0.805
govjobs     1131 4.341 -4.632 -2.176  1.392 0.648
equalrights 1144 2.680 -3.159  1.860 -2.372 0.563
busing      1219 6.042 -2.819  0.329  1.282 0.306
abortion2   1246 2.675  0.587 -1.980  0.906 0.329

basicspace documentation built on Jan. 11, 2020, 9:32 a.m.