search for: media_exposur

Displaying 1 result from an estimated 1 matches for "media_exposur".

Did you mean: media_exposure
2013 Oct 16
1
Extract a predictors form constparty object (CHAID output) in R
...dataset library(CHAID) library(vcd) library(MASS) data("ContraceptiveChoice") longform <- formula(contraceptive_method_used ~ wifes_education + husbands_education + wifes_religion + wife_now_working + husbands_occupation + standard_of_living_index + media_exposure) z <- chaid(longform, data = ContraceptiveChoice) # plot(z) z # This is the part I want to do programatically shortform <- formula(contraceptive_method_used ~ wifes_education + husbands_occupation) # The thing I want is a programatic way to extract 'shortform' from 'z' # Ex...