我需要手动编程概率回归模型而不使用glm。我会用optim直接最小化负对数似然。 我写了下面的代码,但它不工作,给错误: cannot coerce type 'closure' to vector of type 'double' # load data: data provided via the bottom link
Datospregunta2a <- read.dta("proble
我已经建立了一个GLM模型,基本上说以下内容: glm(conversion ~ action, data = data, family = "binomial"(link="logit")
一些从变量的结果“行动”是不相关的模型(即“未使用”)。但是,在我建立的其他模型中,这些记录仍然很重要。如果可能的话,我不想只为这一个模型过滤数据框。 This question告诉我如何排除列。有没有办