3
बूटस्ट्रैप रिग्रेशन से गुणांक के पी-मान कैसे प्राप्त करें?
रॉबर्ट काबाकोफ के क्विक-आर से # Bootstrap 95% CI for regression coefficients library(boot) # function to obtain regression weights bs <- function(formula, data, indices) { d <- data[indices,] # allows boot to select sample fit <- lm(formula, data=d) return(coef(fit)) } # bootstrapping with 1000 replications results <- boot(data=mtcars, statistic=bs, R=1000, …