timeslice(df, tvar, id = 0, time = 0, dropid = TRUE)
df
.df
defines individuals, this is the
column index. Otherwise this should be 0.df
that corresponds to time. If no
such variable is present, this should be 0.TRUE
the column number id
is dropped
in the returned dataframes.df
but with one extra column per
timevarying variable.df
but with only one replicate
per id
of the non-timevarying variables.network
the argument tvar
is
the column indices of both $x_t$ and $x_{t-1}$
(and similarly for other time-varying variables). This will tag the
nodes in the network. The dataframe supplied to all functions used
in the analysis should be bigdf
output from
timeslice
. This is used as data for the time-varying
nodes. The additional argument smalldf
should be
smalldf
supplied also by timeslice
. This is used as
data for non-timevarying nodes.network