| print.net_mlvar | R Documentation |
Print method for net_mlvar
## S3 method for class 'net_mlvar'
print(x, digits = 2, ...)
x |
A |
digits |
Number of digits used for printed network matrices. |
... |
Unused; present for S3 consistency. |
Invisibly returns x.
set.seed(1)
n_id <- 8; n_t <- 30; vars <- c("A", "B", "C")
rows <- lapply(seq_len(n_id), function(i) {
m <- as.data.frame(matrix(rnorm(n_t * 3), ncol = 3))
names(m) <- vars
m$id <- i; m$day <- 1L; m$beep <- seq_len(n_t)
m
})
d <- do.call(rbind, rows)
fit <- fit_mlvar(d, vars = vars, id = "id", day = "day", beep = "beep")
print(fit)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.