w_CV_RE_stan: Bayesian weibull function with Stan, including cross...

Description Usage Arguments Value

View source: R/w_CV_RE_stan.R

Description

Bayesian weibull function with Stan, including cross validation, with random effects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
w_CV_RE_stan(
  mT,
  mT_test,
  m0,
  m0_test,
  time,
  time_test,
  sp,
  J,
  X_alpha,
  X_alpha_test,
  X_beta,
  X_beta_test,
  ...
)

Arguments

mT

Mass remaining of training data

mT_test

Mass remaining of test data

m0

Initial mass of training data

m0_test

Initial mass of test data

time

Vector of time values for training data

time_test

Vector of time values for test data

sp

Numeric group identifier

J

Number of groups

X_alpha

Model matrix for alpha for training data

X_alpha_test

model matrix for alpha for test data

X_beta

Model matrix for beta for training data

X_beta_test

model matrix for beta for test data

...

Arguments passed to rstan::sampling (e.g. iter, chains).

Value

An object of class stanfit returned by rstan::sampling


smwindecker/decaymod documentation built on Sept. 28, 2021, 12:32 a.m.