Error in binominal(link = logit) : could not find function "binominal"
时间: 2024-01-22 10:21:02 浏览: 79
基于Pls-Logit模型的寿险公司财务风险预警模型研究
The error message "could not find function" usually means that the function you are trying to use is not recognized by R. In this case, it seems like you have a typo in the function name. The correct function name is "binomial" (with two "i"s), not "binominal".
The binomial function is typically used in a glm() function call to specify a binomial generalized linear model with a logit link function. For example:
```
model <- glm(response ~ predictor, data = mydata, family = binomial(link = logit))
```
This would fit a logistic regression model with "response" as the response variable and "predictor" as the predictor variable, using the binomial family with a logit link function.
阅读全文