linpred_marg_draws_inla: Draw linear predictors from 'marginals.linear.predictor'

Description Usage Arguments Details Value See Also

View source: R/fitted_marginal.R

Description

Draw linear predictors from marginals.linear.predictor.

Usage

1
2
3
4
5
6
7
linpred_marg_draws_inla(
  .result,
  new_pos = integer(),
  n = nrow(.result$marginals.fixed[[1]]),
  ren = TRUE,
  repl = TRUE
)

Arguments

.result

inla object.

new_pos

Integer of positions of newdata.

n

Sample size (per predictor).

ren

TRUE: rename using brms naming convention.

repl

TRUE: Sampling with replacement.

Details

Draw linear predictors using marginals. Use augment_inla to be able to provide an inla object with the position of the new data. Use the eflINLA::augment_inla to ensure your inla and newdata parameters are using the right input.

Value

posterior::draws_rvars object where every variable is a linear predictor.

See Also

eflINLA::augment_inla


FrankLef/eflINLA documentation built on Dec. 17, 2021, 8:30 p.m.