You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
n_times<-10times<- seq_len(n_times)
truth<-100* exp(sin(times))
y<- rpois(n_times, truth)
plot(y~times, type="l")
library(greta.gam)
#> Loading required package: greta#> #> Attaching package: 'greta'#> The following objects are masked from 'package:stats':#> #> binomial, cov2cor, poisson#> The following objects are masked from 'package:base':#> #> %*%, apply, backsolve, beta, chol2inv, colMeans, colSums, diag,#> eigen, forwardsolve, gamma, identity, rowMeans, rowSums, sweep,#> tapply
eta<- smooths(~1+ s(time), data=data.frame(time=times))
#> ℹ Initialising python and checking dependencies, this may take a moment.#> ✔ Initialising python and checking dependencies ... done!#> lambda<- exp(eta)
distribution(y) <- poisson(lambda)
m<- model(eta)
draws<- mcmc(m)
#> running 4 chains simultaneously on up to 8 CPU cores#> #> warmup 0/1000 | eta: ?s#> Error in self$sample_carefully(free_state = self$free_state, sampler_burst_length = as.integer(n_samples), : object 'n_samples' not found
Created on 2024-02-12 with reprex v2.1.0
Session info
The text was updated successfully, but these errors were encountered: