Skip to content
Prev 64918 / 398498 Next

Logic regression equation in character form?

Perhaps I can ask a more focused question:

"Earl F. Glynn" <efg at stowers-institute.org> wrote in message
news:cvig76$3jq$1 at sea.gmane.org...
..
OK, I have a logic regression equation and just want it in a character form.

For example, I can see this equation from the R command prompt:
score 0.968
 +2.14 * (((not X4) or ((not X13) and X19)) and (not X3)) -1.25 * ((((not
X1) or (not X3)) and ((not X2) or X20)) and (((not X17) and X16) or ((not
X20) and (not X1))))

But I cannot figure out how to get this equation in character form:

Why does this NOT work?
[1] "list"
[1] "logreg"
score 0.968
 +2.14 * (((not X4) or ((not X13) and X19)) and (not X3)) -1.25 * ((((not
X1) or (not X3)) and ((not X2) or X20)) and (((not X17) and X16) or ((not
X20) and (not X1))))
character(0)
[nothing]
The "print" makes the following error go away but does not give me the
string displayed on the R console:
Error in cat(list(...), file, sep, fill, labels, append) :
        argument 1 not yet handled by cat


This simpler analogy DOES work:
[1] "string"
[1] "string"
string
Any clues?  Thanks for any help with this.

efg