| anesrake | R Documentation |
This function exists to provide a backwards compatible function syntax for
anesrake and should not be called for any other
reason. Rewriting the request as a harvest call is preferable.
anesrake(inputter, dataframe, caseid = NULL, weightvec = NULL, cap = 5,
verbose = FALSE, maxit = 1000, type = "pctlim", pctlim = 5,
nlim = 5, filter = NULL, choosemethod = "total", iterate = NULL,
convcrit = 0.01, force1 = NULL, center.baseweights = NULL)
inputter |
Mapped to |
dataframe |
Mapped to |
caseid |
Ignored |
weightvec |
Mapped to |
cap |
Mapped to |
verbose |
Mapped to |
maxit |
Mapped to |
type |
Mapped to |
pctlim |
Mapped to |
nlim |
Mapped to |
filter |
Ignored |
choosemethod |
Mapped to |
iterate |
Ignored, |
convcrit |
Mapped to |
force1 |
Ignored, |
center.baseweights |
Ignored, |
The arguments iterate, force1, and center.baseweights
are not supported. iterate and center.baseweights are forced to
be TRUE. force1 is ignored and if any target variables do not sum to 1,
an error will occur.
A list containing one item, a named vector weightvec which contains
the weights generated by harvest. Other elements of
anesrake returns are not supported.
## Not run:
# Load autumn: this will mask anesrake's anesrake function with autumn's
library(autumn)
# Argument order and names are the same as anesrake; but caseid is no longer
# required and the increased flexibility for data and target arguments from
# `harvest()` are supported.
anesrake(inputter = ns_target, dataframe = respondent_data)
# Most anesrake arguments supported
anesrake(ns_target, respondent_data, type = "nlim", choosemethod = "max")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.