| pals_params | R Documentation |
A lightweight container for the four PALS smoothing parameters. Use it to project actor locations with known parameters (e.g. values reported in a paper), without estimating them from data.
pals_params(alpha, beta = 0, gamma = 0, eta = 0, model = c("four", "one"))
alpha |
Time-decay of the focal actor's own event history ( |
beta |
Time-decay of the alters' event histories ( |
gamma |
Intercept of the logistic mixing weight |
eta |
Slope of the logistic mixing weight on the event-count ratio. Ignored in the one-parameter model. |
model |
Either |
The mixing weight is \pi = \mathrm{plogis}(\gamma + \eta v), where
v = (n_i / n_k)^{1/\sqrt{n_k}} compares the number of focal events
(n_i) with the number of alter events (n_k). The projected location is
(1-\pi) times the recency-weighted mean of the focal actor's own past event
locations plus \pi times the recency-weighted mean of its alters' locations.
See project_pals() and the package vignette.
An object of class pals_params.
p <- pals_params(alpha = 0.9, beta = 0.2, gamma = -10, eta = -10)
p
pals_params(alpha = 0.9, model = "one")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.