Skip to content

Commit

Permalink
fixed demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Greif committed Jul 23, 2013
1 parent ebd8cac commit 5c85b70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions demo/iv.demo.r
@@ -1,15 +1,15 @@

# Get summary IV for data frame
iv.mult(german_data,"gbbin",summary=TRUE)
iv.mult(german_data,"gb",summary=TRUE)

# Plot summary IV for data frame
iv.plot.summary(iv.mult(german_data,"gbbin",summary=TRUE))
iv.plot.summary(iv.mult(german_data,"gb",summary=TRUE))

# Plot WoE patterns for individual variables
iv.plot.woe(iv=iv.mult(german_data,"gbbin",vars=c("age","mob","ca_status")))
iv.plot.woe(iv=iv.mult(german_data,"gb",vars=c("age","duration","ca_status")))

# Plot WoE patterns for all variables
iv.plot.woe(iv=iv.mult(german_data,"gbbin"))
iv.plot.woe(iv=iv.mult(german_data,"gb"))

# Transform raw variables to WoE (creates new columns [original_column_name]_woe)
str(iv.replace.woe(german_data,iv.mult(german_data,"gbbin")))
str(iv.replace.woe(german_data,iv.mult(german_data,"gb")))

0 comments on commit 5c85b70

Please sign in to comment.