logis.noise | R Documentation |
Adds some noise to the fitted values of a glm
model to create a nls
model for logistic regression (creating a nls
model from exact fitted values can not be done, see help of nls
).
logis.noise(model, intensity = 25)
model |
|
intensity |
intensity of the noise: lower the value, bigger the noise. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
glm
, nls
x <- 1:50
y <- c(rep(0,18),sample(0:1,14,replace=TRUE),rep(1,18))
model <- glm(y~x,family=binomial)
y2 <- logis.noise(model)
# Then model2 <- nls(y2~SSlogis(...))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.