[R] simple on point bisserial correlation

2010-05-05 Thread Dmitry Gospodaryov
correlation? 1a). Why ltm use non-traditional equation for bisserial coefficient? Which is significance of this difference? 2). Can I also calculate significance of the biserial correlation coefficient (p ???; using, probably, t-test) by means of R-project? Thank You for advance. With regard, Dmitry

[R] histogram

2009-10-13 Thread Dmitry Gospodaryov
Dear R developers,How I can build a histogram from matrix: 0 0.5 1 0.25 34 43 65 1 23 35 54 4 22 29 42 10 21 22 29 20 15 17 20 (first string is represented names of columns, first column is represented names of rows) where names of columns should be x-axis labels; respectively to this, I want

[R] response surface designs

2009-10-13 Thread Dmitry Gospodaryov
How I can obtain graphics for response surface design, basing on data: x: 0.25, 1, 4, 10, 20. y: 0, 0.5, 1 z1 (for y = 0): 45, 35, 25, 15, 10. z2 (for y = 0.5): 50, 45, 36, 21, 17. z3 (for y = 1): 37, 34, 22, 17, 11? z-values should be scaled in colour (e. g. from red to blue). I consider to use

[R] some simple questions regarding survival analysis

2009-09-29 Thread Dmitry Gospodaryov
I have two types of survival data for Drosophila cohort. For example: uncensored age - c (0, 2, 4, 6, 8, 10) alive1 - c(10, 9, 6, 3, 1, 0) alive 2 - c(10, 9, 4, 1, 1, 0) and censored age - c(0, 2, 4, 6, 8, 10) alive1 - c(10, 8, 3, 1, 1, 0) escaped1 - c(0, 1, 1, 0, 0, 0) alive2 - c(10, 7,

[R] Tool for solving equations

2009-09-28 Thread Dmitry Gospodaryov
Does exist any tool in R to solve equations, especially complex exponential equations? For example: y = 100*exp(b*(1-exp(c*x))/c) If it is so, then what is the package i have to use and what is algorythm for this solving? Thank you for advance. With regard, Dmitry.

[R] Difficulties with the simpest table

2009-06-10 Thread Dmitry Gospodaryov
I have the data arranged in table (in Excel, or Notepad): x y 0 100 2 100 4 80 6 40 8 0 I need to transfer these data in R file and then going to operate with x and y as with variables. I should note, that I

[R] curve fitting

2009-05-12 Thread Dmitry Gospodaryov
I have the data: for x: 2, 8, 14, 20, 26, 32, 38, 44, 50, 56, 62, 68, 74, for y: 100, 99, 99, 98, 97, 94, 82, 66, 48, 38, 22, 10, 1. y depends on x by equation: y = 100*exp(b*(1-exp(c*x))/c), where b and c are coefficients. I need to find coefficients in this equation for given data. How can I do