mu_meanfunction: Evaluate mean function

mu_meanfunctionR Documentation

Evaluate mean function

Description

Evalautes the mean function defined in ModelInfo, with the parameters given in theta, at the points given by the vector x.

Usage

mu_meanfunction(ModelInfo, theta, x)

Arguments

ModelInfo

A row from the output of set_models(), containing the mean_function and error distribution of the model in question. Or a string in the form of "meanfun_errdist".

theta

Vector containing parameter values of model.

x

Values at which to calculate the mean function.

Value

Calculates the constant mean functions defined by thetaM at points x.

Examples


Models <- set_models (mean_fun=c("gaussian"), err_dist=c("negbin"))
mu_meanfunction (ModelInfo=Models[1,], theta=c(H=60, m=50, s=10, phi=1.5), x=0:100)


PRIMER-e/senlm documentation built on Nov. 20, 2022, 2:38 a.m.