pr1 {epr} | R Documentation |
Analysis of polynomial regression
Description
The function performs analysis of polynomial regression in simple designs with quantitative treatments. The function also performs with randon factor in mixed models.
Usage
pr1(data, mixed = FALSE, digits = 6)
Arguments
data |
data is a data.frame The first column should contain the treatments (explanatory variable) and the remaining columns the response variables (fixed model). The first column should contain the treatments (explanatory variable), second colunm should contais de random variable and the remaining columns the response variables (mixed model). |
mixed |
FALSE = fixed model TRUE = mixed model |
digits |
6 = defalt (number of digits) |
Value
Returns coefficients of the models, t test for coefficients, R squared, adjusted R squared, AIC, BIC and the maximum (or minimum) values of y and critical point of x, residuals and normality test.
Author(s)
Emmanuel Arnhold <emmanuelarnhold@yahoo.com.br>
See Also
lm, ea1(easyanova package), pr2, regplot
Examples
# data
data(data5)
# linear and quadratic models
results1=pr1(data5)
results1
# analysis in completely randomized design
data(data1)
r1=pr2(data1)
names(r1)
r1
r1[1]
pr1(data1)
# analysis in randomized block design
data(data2)
r2=pr2(data2, design=2)
r2
pr1(data2, mixed=TRUE)