50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

DySeq (version 0.13)

LogSeq: LogSeq

Description

Implementation of Bakeman & Gottman (1997) for sequence analysis. Kenny, Kashy & Cook (2006) provide further examples.

Usage

LogSeq(x, delta = 0.5, subgroups = NA, single.case = FALSE)

Arguments

x
a state.trans object or a list of 4*2 state-transition tables
delta
constant added to every cell, required if zero frequencies occur!
subgroups
an optional vector containing groupmembership if estimates should be compared between groups
single.case
should p-values be computed for single case analysis

Details

  • Runs logit models over a multiple number of state-transition tables, see: StateTrans
  • Aggregates coefficients of all logit models and tests them against zero.
  • If subgroups are defined, coefficients are tested to be different between groups.
  • Print-function displays mean logit-coefficients and p-values.

References

  • Bakeman, R., & Gottman, J. M. (1997)
  • Kenny, D. A., Kashy, D. A., & Cook, W. L. (2006)

Examples

Run this code
data(CouplesCope)
my.states<-StateExpand(CouplesCope, 2:49, 50:97)
my.trans<-StateTrans(my.states, FALSE)
my.logseq<-LogSeq(my.trans)
my.logseq

plot(my.logseq) # interaction can be plotted

single.LogSeq(my.logseq, 41) # for single case analysis

Run the code above in your browser using DataLab