gammaToBeta | R Documentation |
Transforms posterior means \hat{\gamma}_2
and variances corresponding
to transformed auxiliary regressors Z_2
back to regression coefficients
\hat{\beta}
of original regressors X_1
and X_2
.
gammaToBeta(
posterior,
y,
Z1,
Z2,
Delta1,
D2,
sigma,
Z1inv,
method = "original",
svdZ1
)
posterior |
Object returned from |
y |
Response |
Z1 |
Transformed focus regressors |
Z2 |
Transformed auxiliary regressors |
Delta1 |
|
D2 |
From |
sigma |
Prespecified or estimated standard deviation of the error term. |
Z1inv |
|
method |
Character. |
svdZ1 |
Optional, only needed if |
The same transformations also work for GLMs, where we replace X_1
,
X_2
, Z_1
and Z_2
with \bar{X}_1
, \bar{X}_2
,
\bar{Z}_1
and \bar{Z}_2
, respectively. Generally, we need to
replace all variables with their corresponding "bar" version. Further,
for GLMs sigma
is always 1.
See \insertCitemagnus2016wals;textualWALS, \insertCitedeluca2018glm;textualWALS and \insertCitehuynhwals;textualWALS for the definitions of the variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.