Learn R Programming

epr (version 3.0)

r.test: Tests for model identity and parameter

Description

The function performs tests of parameters and models.

Usage

r.test(data, digits=6)

Arguments

data

data is a data.frame The first column should contain the x (explanatory variable) second treatments and the remaining columns the response variables.

digits

number of digits (defalt = 6)

Value

Returns coefficients of the models, t test for coefficients and tests for parameters and models.

See Also

lm, ea1(easyanova package), pr2, regplot

Examples

Run this code
# NOT RUN {
x=c(1,1,1,2,2,2,3,3,3,4,4,4)
y=c(5,5.3,6,8,8.9,12,14,18,25,25,29,32)
t=c("a1","a2","a3","a1","a2","a3","a1","a2","a3","a1","a2","a3")
data=data.frame(x,t,y)

r.test(data)


# }

Run the code above in your browser using DataLab