seqstatf | R Documentation |

Overall frequency of each state of the alphabet in the state sequence object.

```
seqstatf(seqdata, weighted = TRUE, with.missing=FALSE)
```

`seqdata` |
a sequence object as defined by the |

`weighted` |
Logical. Should frequencies account for weights when present in the state sequence object
(see |

`with.missing` |
Logical. Should non void missing states be treated as regular values? Default is |

The `seqstatf`

function computes the (weighted) count and frequency of each state of the alphabet in `seqdata`

, i.e., the (weighted) sum of the occurrences of a state in `seqdata`

.

A data frame with as many rows as states in the alphabet and two columns, one for the count (Freq) and one for the percentage frequencies (Percent).

Alexis Gabadinho

`seqstatd`

for the state distribution by time point (position), `seqistatd`

for the state distribution within each sequence.

```
## Creating a sequence object from the actcal data set
data(actcal)
actcal.lab <- c("> 37 hours", "19-36 hours", "1-18 hours", "no work")
actcal.seq <- seqdef(actcal, 13:24, labels=actcal.lab)
## States frequencies
seqstatf(actcal.seq)
## Example with weights
data(ex1)
ex1.seq <- seqdef(ex1, 1:13, weights=ex1$weights)
## Unweighted
seqstatf(ex1.seq, weighted=FALSE)
## Weighted
seqstatf(ex1.seq, weighted=TRUE)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.