pop_test: Polpulation test

Description Usage Arguments See Also Examples

View source: R/modeller.R

Description

This function is a population test function and returns a matrix of 'Pass' or 'Fail', depending on the values of the slopes and models, and number of heating month and cooling months. The threshold hold is length(x)/4.

Usage

1
pop_test(x, bestvalue, model, n = 4)

Arguments

x

A vector. Independent variables.

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'

n

A numeric value that determines threshold: thereshold = length(x)/n. Defaults to 4.

See Also

tTest and shape_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)
pop_matrix = pop_test(x, bestvalue, model)

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