% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/effects.R
\name{psABAY}
\alias{psABAY}
\title{psABAY}
\usage{
psABAY(consider_type = "ignore")
}
\arguments{
\item{consider_type}{character. Controls how event types are handled:
\code{"ignore"} (default): aggregate over all event types (one statistic);
\code{"separate"}: compute C type-specific statistics, where the type-c
statistic for a dyad reflects past type-c events on that actor pair
;
\code{"interact"}: compute C^2 statistics capturing past-event-type x
dyad-type interactions (only meaningful with \code{extend_riskset_by_type=TRUE} in remify object).
Also accepts \code{FALSE} (-> \code{"ignore"}) and \code{TRUE}
(-> \code{"separate"}) for backward compatibility.}
}
\value{
List with all information required by `remstats::remstats()` to 
compute the statistic.
}
\description{
Specifies the statistic for a participation shift AB-AY.
}
\details{
One of Gibson's (2003) dyadic participation shifts. The AB-AY participation
shift refers to a tendency for \emph{turn continuing}. For directed events,
the sender (A) in the current event is the same as the sender in the
previous event (A), and the receiver (Y) is different from the previous
receiver (B). In undirected events, one of the current actors (A) matches
one of the actors in the previous events (A or B), while the other actor (Y)
is different.

To identify these shifts, a statistic 'psABAY' is calculated for each pair
of actors at a given timepoint (t). If the pair's interaction follows the
AB-AY pattern, the statistic is set equal to one; otherwise, it's set to
zero.

Additionally, the types of the AB and AY events can be taken into account. If
'consider_type' is 'TRUE', the type of the AB event and the type of the AY
event must match for the shift to occur. If 'consider_type' is 'FALSE', the
shift happens for every AY event, regardless of the event type.
}
\examples{
reh <- remify::remify(history, model = "tie")
effects <- ~ psABAY()
remstats(reh = reh, tie_effects = effects)

}
\seealso{
\code{\link{psABBA}}, \code{\link{psABBY}}, \code{\link{psABXA}},
\code{\link{psABXB}}, \code{\link{psABXY}} or \code{\link{psABAB}} for other
dyadic participation shifts.
}
