Description Usage Arguments Value Author(s) See Also Examples
This documentation describes the setx1
Zelig 4 compatibility wrapper
function. The wrapper is primarily useful for setting fitted values
for creating first differences in piped workflows.
1 |
obj |
output object from |
fn |
a list of functions to apply to the data frame |
data |
a new data frame used to set the values of
explanatory variables. If |
cond |
a logical value indicating whether unconditional
(default) or conditional (choose |
... |
user-defined values of specific variables for overwriting the
default values set by the function |
The output is returned in a field to the Zelig object. For
unconditional prediction, x.out
is a model matrix based
on the specified values for the explanatory variables. For multiple
analyses (i.e., when choosing the by
option in zelig
,
setx1
returns the selected values calculated over the entire
data frame. If you wish to calculate values over just one subset of
the data frame, the 5th subset for example, you may use:
x.out <- setx(z.out[[5]])
Christopher Gandrud, Matt Owen, Olivia Lau, Kosuke Imai
The full Zelig manual may be accessed online at http://docs.zeligproject.org/articles/
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.