# avas

From acepack v1.0-4

##### avas: Additivity and variance stabilization for regression

##### Usage

`avas(x, y, wt, mon, lin, cat, circ, delrsq,yspan)`

##### Arguments

- x
- a matrix containing the independent variables.
- y
- a vector containing the response variable.
- wt
- an optional vector of weights.
- mon
- an optional integer vector specifying which variables are to be
transformed by monotone transformations.
Positive values in
`mon`

refer to columns of the`x`

matrix and zero to the response variable. - lin
- an optional integer vector specifying which variables are to be
transformed by linear transformations.
Positive values in
`lin`

refer to columns of the`x`

matrix and zero to the response variable. - cat
- an optional integer vector specifying which variables assume
categorical values.
Positive values in
`cat`

refer to columns of the`x`

matrix and zero to the response variable. - circ
- an integer vector specifying which variables assume
circular (periodic) values.
Positive values in
`circ`

refer to columns of the`x`

matrix and zero to the response variable. - delrsq
- termination threshold. Iteration stops when R-squared
changes by less than
`delrsq`

in 3 consecutive iterations (default 0.01). - yspan
- Optional window size parameter for smoothing the variance. Range[0,1]. Default=0 (cross validated choice). .5 is a reasonable alternative to try.

##### bold

- VALUE
- REFERENCE

##### item

- x
- y
- tx
- ty
- rsq
- l
- m
- yspan
- iters
- niters

##### emph

File automatically converted from S(-PLUS) help format

##### Examples

```
TWOPI <- 8*atan(1)
x <- runif(200,0,TWOPI)
y <- exp(sin(x)+rnorm(200)/2)
a <- avas(x,y)
par(mfrow=c(3,1))
plot(a$y,a$ty) # view the response transformation
plot(a$x,a$tx) # view the carrier transformation
plot(a$tx,a$ty) # examine the linearity of the fitted model
```

*Documentation reproduced from package acepack, version 1.0-4, License: avas is public domain, ace is on Statlib*

### Community examples

Looks like there are no examples yet.