One row per coefficient for skmle and kee fits, and one row per
(target time, coefficient) for kee_td, so a coefficient curve goes
straight into ggplot2 without reshaping.
Value
A tibble with columns term, estimate, std.error, statistic
and p.value, preceded by time for a kee_td fit, and followed by
conf.low and conf.high when conf.int = TRUE.
Examples
set.seed(1)
d <- sim_async_data(n = 150)
fit <- kee_async(d$y, d$x, y ~ x, id = id, time = time, h = 0.3)
tidy(fit, conf.int = TRUE)
#> # A tibble: 2 × 7
#> term estimate std.error statistic p.value conf.low conf.high
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 (Intercept) 0.627 0.0972 6.45 1.13e-10 0.436 0.817
#> 2 x 1.41 0.1000 14.1 2.17e-45 1.22 1.61