Displaying 2 results from an estimated 2 matches for "tb144".
Did you mean:
t144
2009 Dec 08
1
histbackback function
...lay the y-axis
values where the two histograms are back to back, rather than on the y-axis?
Below, I've pasted the graph that I'm trying to recreate, as well as the
code and graph from my current (unsuccessful) attempt.
options(digits=1)
require(Hmisc)
out <- histbackback(split(data8$TB144, data8$PRES), probability=TRUE,
main="Back to Back Histogram", ylab="TB144 1min rates")
barplot(-out$left, col="ivory2", horiz=TRUE, space=0, add=TRUE, axes=FALSE)
barplot(out$right, col="ivory4", horiz=TRUE, space=0, add=TRUE, axes=FALSE)
grid(nx=NULL, ny =...
2009 Dec 16
2
rcart - classification and regression trees (CART)
Hi,
I am trying to use CART to find an ideal cut-off value for a simple
diagnostic test (ie when the test score is above x, diagnose the condition).
When I put in the model
fit=rpart(outcome ~ predictor1(TB144), method="class", data=data8)
sometimes it gives me a tree with multiple nodes for the same predictor (see
below for example of tree with 1 or multiple nodes). Is there a way to tell
it to make only 1 node? Or is it safe to assume that the cut-off value on
the primary node is the ideal...