llressp:

Usage Arguments Examples

Usage

1
llressp(x, y)

Arguments

x
y

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, y) 
{
    q <- 5
    out <- glm(y ~ x[, 1] + x[, 2] + x[, 3] + x[, 4] + x[, 5], 
        family = poisson)
    ESP <- x %*% out$coef[-1] + out$coef[1]
    Y <- y
    plot(ESP, Y)
    abline(mean(y), 0)
    fit <- y
    fit <- exp(ESP)
    indx <- sort.list(ESP)
    lines(ESP[indx], fit[indx])
    lines(lowess(ESP, y), type = "s")
  }

musto101/wilcox_R documentation built on May 23, 2019, 10:52 a.m.