shape_test: Shape test

Description Usage Arguments See Also Examples

View source: R/modeller.R

Description

This function tests if a given model has an expected shape by evaluating the slopes (positive, negative or zero).

Usage

1
shape_test(bestvalue, model)

Arguments

bestvalue

A list containing information about parameters such as slopes, change-points, and stats such as RMSE.

model

A character string. Model such as '2P', '3PH', '3PC', '4P' or '5P'.

See Also

link{tTest} and pop_test

Examples

1
2
3
4
5
x = matrix(c(1:10))
y = matrix(c(1,2.5,3,4,5,5.5,7,8.3,9,10))
model = '4P'
bestvalue = create_model(x, y, model)
shape_test(bestvalue, model)

tinnaing347/bRema documentation built on Aug. 23, 2019, 9:15 p.m.