h_newdata_add_pred: Add Prediction Results to New Data

View source: R/tidiers.R

h_newdata_add_predR Documentation

Add Prediction Results to New Data

Description

This is used in augment.mmrm().

Usage

h_newdata_add_pred(x, newdata, se_fit, interval, ...)

Arguments

x

(mmrm)
fit.

newdata

(data.frame)
data to predict.

se_fit

(flag)
whether to return standard error of prediction, can only be used when interval is not "none".

interval

(string)
type of interval.

...

passed to predict.mmrm_tmb().

Value

The newdata as a tibble with additional columns .fitted, .lower, .upper (if interval is not none) and .se.fit (if se_fit requested).


mmrm documentation built on Oct. 7, 2024, 1:14 a.m.