Displaying 1 result from an estimated 1 matches for "ii_find_income2".
2005 May 24
0
output of mars() in package mda; how do I read the pairwise interaction terms from the output?
...c" "DZ5_str" "DZ1_pob"
[49] "alor" "ihcfbalratio" "cgsbalratio" "cgsbalpaid"
[53] "oxlogit_new" "nslogit_new" "sclogit_new" "hit"
[57] "II_Find_Income2" "II_SESI2"
>
> y <- pchresp[, c(1)]
> x <- pchresp[, -c(1)]
>
> m1 <- mars(x, y)
>
> showcuts <- function(obj)
+ {
+ tmp <- obj$cuts[obj$sel, ]
+ dimnames(tmp) <- list(NULL, dimnames(x)[[2]])
+ tmp
+ }
>
> showcuts(m1)...