tTest: tTest

Description Usage Arguments See Also Examples

View source: R/modeller.R

Description

This function calcuates t-stats of slopes. This function is called inside model_test. The threshold for tstat is set to 2 standard deviation from the null hypothesis where the slope is equal to zero.

Usage

1
tTest(x, y, bestvalue, model)

Arguments

x

A vector. Independent variables.

y

A vector. Dependent 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'.

See Also

pop_test 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)
t_matrix = tTest(x, y, bestvalue, model)

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