[R] Referencing to an object within a function

2008-02-19 Thread Benjamin Zuckerberg
I am encountering an error when I attempt to reference a glm model within a function. The function uses the segmented.glm command (package = segmented). Within the segmented.glm command one specifies an object, in this case a logistic regression model, and specifies a starting threshold

[R] Obtaining x-values from ECDF

2007-11-18 Thread Benjamin Zuckerberg
lue for the 3rd quartile is 1.912. How can I obtain the x-value for a specified y-value (e.g., 0.8)? Thank you! -- Benjamin Zuckerberg Doctoral Candidate State University of New York College of Environmental Science and Forestry Illick 244A, 1 Forestry Drive Syracuse, New York 13210 Tele: (

[R] Extracting x-values from an ecdf

2007-11-16 Thread Benjamin Zuckerberg
g., 80) for each separate distribution. Then I could produce an average x-value for all the distributions for a given percentile. I hope this is not too confusing. Thank you for the help! -- Benjamin Zuckerberg Doctoral Candidate State University of New York College of Environmental Scie