Description Usage Arguments Value Author(s) See Also
Toolbox function that sets anchors to bridge two datasets.
1 2 3 4 5 6 7 8 9 10 11 12 13 | setanchors(
d1,
d2,
anchors.method = "subsample",
anchors.subsample.method = "random",
anchors.subsample.pr = 0.1,
anchors.subsample.wgt.d1 = NULL,
anchors.subsample.wgt.d2 = NULL,
anchors.selectrows.d1 = 1:100,
anchors.selectrows.d2 = 1:100,
anchors.selectrows.data = NULL,
anchors.newdata = NULL
)
|
d1 |
Matrix or data.frame of 'reference' responses.
(i.e., In mapping methods, ideal points based on |
d2 |
Matrix or data.frame of responses to be transformed. |
anchors.method |
Method to select anchors to bridge ideal points.
Following values are currently available.
Ignored if
Note that |
anchors.subsample.method |
Method to sample anchors. Following values are currently available:
|
anchors.subsample.pr |
Numeric vector of length 1 or 2.
Used when |
anchors.subsample.wgt.d1 |
Optional weights passed to |
anchors.subsample.wgt.d2 |
Optional weights passed to |
anchors.selectrows.d1 |
Must be the vector of positive integers.
Specify the row numbers of anchors in |
anchors.selectrows.d2 |
Must be the vector of positive integers.
Specify the row numbers of anchors in |
anchors.selectrows.data |
Required if |
anchors.newdata |
Matrix or data.frame of anchors. Must have identical
columns as |
A list with the following elements:
bridge.data
: data.frame to store the ideal point estimates in the next method.
d.ip1
: d1
with anchors.
d.ip2
: d2
with anchors.
anchorrows.ip1
: Anchor locations in d.ip1
.
anchorrows.ip2
: Anchor locations in d.ip2
.
anchorrows.ip1.data
: Original dataset for anchors identified in anchorrows.ip1
.
anchorrows.ip2.data
: Original dataset for anchors identified in anchorrows.ip2
.
Tzu-Ping Liu jamesliu0222@gmail.com, Gento Kato gento.badger@gmail.com, and Sam Fuller sjfuller@ucdavis.edu.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.