语言随机效应模型_医学统计与R语言:Probit回归模型及边际效应(Marginal effects)...

微信公众号:医学统计与R语言如果你觉得对你有帮助,欢迎转发

A probit regression is a version of the generalized linear model used to model dichotomous outcome variables. It uses the inverse standard normal distribution as a linear combination of the predictors. The binary outcome variable Y is assumed to have a Bernoulli distribution with parameter p (where the success probability is p∈(0,1)p∈(0,1)). Hence, the probit link function is

13c31c45da60ab28208246e947a8e055.png

Remember back to intro stats when you had to look up in Z tables the area under the normal curve for a specific Z value? That area represents a cumulative probability: the probability that Z is less than or equal to the specified Z value.

7814f3c25d533c55dfd2cc164a104c9f.png

Coefficients for probit models can be interpreted as the difference in Z score associated with each one-unit difference in the predictor variable.

Although the effect on Z of a change in  X is linear, the link between  z and the dependent variable  Y is nonlinear since  Φ is a nonlinear function of  X.

输入1:

rm(list=ls())
setwd("C:/Users/mooshaa/Desktop")
library(rio)
bilog import("log.sav")
head(bilog)
bilog[,c(1,2,6)] 1,2,6)] ,as.factor)
xtabs(~Gender + Smoking_status, data = bilog)

结果1:

 Smoking_status
Gender  0  1
     0 94 27
     1 17 80

输入2:

logitmodel <- glm(Smoking_status~., data = bilog, family = binomial(link="logit"))probitmodel <- glm(Smoking_status~., data = bilog, family = binomial(link="probit"))summary(probitmodel)

结果2:

Call:
glm(formula = Smoking_status ~ ., family = binomial(link = "probit"), 
    data = bilog)

Deviance Residuals: 
    Min       1Q 
  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值