Description Usage Arguments Value
given a dataset with the respondents and a dataset on the parents (in many cases the same individuals), and a set of relevant traits, estimate mixing parameters and return a markov model
1  estimate.mixing(survey.data, parent.data, traits)

survey.data 
the respondent info 
parent.data 
the parent info 
traits 
the names of the traits to build the model on 
a list with two entries:
mixing.df
the data used to estimate the mixing
choose.next.state.fn
a function which can be passed
a vector of states and will return a draw of a subsequent state
each entry in the vector
mixing.df
a dataframe (longform) representation of
the transition counts used to estimate the transition probabilities
states
a list with an entry for each state. within
each state's entry are
trans.probs
a vector of estimated
transition probabilities
trans.fn
a function which,
when called, randomly chooses a next state with probabilities given
by the transition probs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.