HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Program Files/R/R-4.4.0/library/MASS/tests/profile.R
### Example from Merete Kjær Hansen 2011-07-06
library(MASS)
dat <- data.frame(y = c(35, 21, 9, 6, 1),
                  dose = c(0.0028, 0.0056, 0.0112, 0.0225, 0.045),
                  n = c(40, 40, 40, 40, 40), w = 1:5)
### fit model with two-column response and weights
fm <- glm(cbind(y, n-y) ~ dose, weights=w, family=binomial, data=dat)
### Investigating the profile likelihoods of the parameters with profile.glm
profile(fm)
## failed in MASS 7.3-13