Displays a summary of the fitted fash object, including the number of datasets, type of likelihood used, the number of PSD grid values, and the order of the Integrated Wiener Process (IWP).

# S3 method for class 'fash'
print(x, ...)

Arguments

x

A fash object.

...

Additional arguments (not used).

Examples

set.seed(1)
data_list <- list(
  data.frame(y = rpois(5, lambda = 5), x = 1:5, offset = 0),
  data.frame(y = rpois(5, lambda = 5), x = 1:5, offset = 0)
)
grid <- seq(0, 2, length.out = 10)
fash_obj <- fash(data_list = data_list, Y = "y", smooth_var = "x", offset = "offset", grid = grid, likelihood = "poisson", verbose = TRUE)
#> Starting data setup...
#> Completed data setup in 0.00 seconds.
#> Starting likelihood computation...
#> 
  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |===================================                                   |  50%
  |                                                                            
  |======================================================================| 100%
#> Completed likelihood computation in 0.15 seconds.
#> Starting empirical Bayes estimation...
#> Completed empirical Bayes estimation in 0.00 seconds.
#> fash object created successfully.
print(fash_obj)
#> Fitted fash Object
#> -------------------
#> Number of datasets: 2
#> Likelihood: poisson
#> Number of PSD grid values: 10 (initial), 1 (non-trivial)
#> Order of Integrated Wiener Process (IWP): 2