Fit a Two-factor Box-Tidwell Nonlinear Response Surface
Usage
rs2(y,x1,x2,power=c(1,1),weight=rep(1,length(y)),family=normal)
Arguments
y
|
Response variable
|
x1
|
First covariate
|
x2
|
Second covariate
|
power
|
Initial estimates of the two power transformations
|
weight
|
Weight vector
|
family
|
glm family
|
Description
rs2
fits a two-covariate power-transformed response surface by
iterating the function, glm
.Value
A list of class, rs, is returned containing the model and the power
estimates.See Also
lm
, glm
, gnlr
, gnlr3
, fmr
, rs3
.Examples
rs2(native,area,elevation,fam=poisson,weight=wt)