Created
September 27, 2016 07:23
-
-
Save dialektike/6d6896e15f80732f2fb8131cab636a19 to your computer and use it in GitHub Desktop.
데이터 스마트, 493쪽에 추가하여 사용할 수 있는 코드
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fitted(Pregnancy.lm) | |
ifelse (fitted(Pregnancy.lm) > 0.5, 1, 0) == PregnancyData$PREGNANT | |
맞나요 <- ifelse (fitted(Pregnancy.lm) > 0.5, 1, 0) == PregnancyData$PREGNANT | |
sum(맞나요)sum(맞나요)/NROW(맞나요) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment