Re: [R] calculating area of ellipse

2021-05-06 Thread David Winsemius
On 5/6/21 6:29 PM, Jim Lemon wrote: Hi James, If the result contains the major (a) and minor (b) axes of the ellipse, it's easy: area<-pi*a*b ITYM semi-major and semi-minor axes. -- David try using str() on the result you get. Jim On Fri, May 7, 2021 at 3:51 AM james meyer wrote:

Re: [R] solving integral equations with undefined parameters using multiroot

2021-05-06 Thread Abbs Spurdle
lm (cl$y ~ cl$x)$coef (Intercept)cl$x 0.1817509 -1.000 On Fri, May 7, 2021 at 1:56 PM Abbs Spurdle wrote: > > #using vF1 function > #from my previous posts > u <- seq (0, 0.25,, 200) > cl <- contourLines (u, u, outer (u, u, vF1),, 0)[[1]] > plot (cl$x, cl$y, type="l") > > > On Thu

Re: [R] solving integral equations with undefined parameters using multiroot

2021-05-06 Thread Abbs Spurdle
#using vF1 function #from my previous posts u <- seq (0, 0.25,, 200) cl <- contourLines (u, u, outer (u, u, vF1),, 0)[[1]] plot (cl$x, cl$y, type="l") On Thu, May 6, 2021 at 10:18 PM Ursula Trigos-Raczkowski wrote: > > Thanks for your reply. Unfortunately the code doesn't work even when I change

Re: [R] calculating area of ellipse

2021-05-06 Thread Jim Lemon
Hi James, If the result contains the major (a) and minor (b) axes of the ellipse, it's easy: area<-pi*a*b try using str() on the result you get. Jim On Fri, May 7, 2021 at 3:51 AM james meyer wrote: > > In doing meta-analysis of diagnostic accuracy I produce ellipses of confidence > and predic

Re: [R] Analysing data with repeated measure variable

2021-05-06 Thread Bert Gunter
This looks like homework. We don't do homework on this list. To see what is done here, read and follow the posting guide linked below. If not homework, I think it is still very much out of bounds anyway, as you appear to be asking us to do your work for you. On Thu, May 6, 2021, 2:32 PM Ahmad Ra

[R] Analysing data with repeated measure variable

2021-05-06 Thread Ahmad Raza
Dear Experts, Greetings I have the following type of repeated measures data (table 1), and events data in table 2 (single measure). I want to perform the following tasks (in R or excel sheet please). - To filter subjects who had any response at least 3 days. - Response should be > 5 in each

Re: [R] Transforming data

2021-05-06 Thread Jeff Newmiller
Posting HTML email is a good way to reduce your chances of getting a response. On May 6, 2021 1:13:16 PM PDT, Jeff Reichman wrote: >R-help > >Never mind I figured out a working solution > >- remove duplicate >- mutate a new column == 1 >- spread the data from long to wide >- replace NA with 0's

Re: [R] Transforming data

2021-05-06 Thread Jeff Reichman
R-help Never mind I figured out a working solution - remove duplicate - mutate a new column == 1 - spread the data from long to wide - replace NA with 0's Not sure it’s the most elegant but gets the gob done -Original Message- From: R-help On Behalf Of Jeff Reichman Sent: Thursday,

[R] Transforming data

2021-05-06 Thread Jeff Reichman
R Help Forum I am attempting to transform the data frame in Table 1 to the form shown in Table 2. Any suggestions. I�ve started by removing duplicate rows Jeff Table 1 Taxon Importer Guarouba guarouba AE Acipenser gueldenstaedtii AE Caiman crocodilus fuscus AE Caiman croc

Re: [R] calculating area of ellipse

2021-05-06 Thread John Fox
Dear James, To mix notation a bit, presumably the (border of the) confidence ellipse is of the form (b - beta)'V(b)^-1 (b - beta) = c, where V(b) is the covariance matrix of b and c is a constant. Then the area of the ellipse is pi*c^2*sqrt(det(V(b))). It shouldn't be hard to translate that in

[R] calculating area of ellipse

2021-05-06 Thread james meyer
In doing meta-analysis of diagnostic accuracy I produce ellipses of confidence and prediction intervals in two dimensions. How can I calculate the area of the ellipse in ggplot2 or base R? thank you James Meyer __ R-help@r-project.org mailing list -- T

Re: [R] solving integral equations with undefined parameters using multiroot

2021-05-06 Thread Ursula Trigos-Raczkowski
Thanks for your reply. Unfortunately the code doesn't work even when I change the parameters to ensure I have "different" equations. Using mathematica I do see that my two equations form planes, intersecting in a line of infinite solutions but it is not very accurate, I was hoping R would be more a

Re: [R] solving integral equations with undefined parameters using multiroot

2021-05-06 Thread Abbs Spurdle
Just realized five minutes after posting that I misinterpreted your question, slightly. However, after comparing the solution sets for *both* equations, I can't see any obvious difference between the two. If there is any difference, presumably that difference is extremely small. On Thu, May 6, 20

Re: [R] solving integral equations with undefined parameters using multiroot

2021-05-06 Thread Abbs Spurdle
Hi Ursula, If I'm not mistaken, there's an infinite number of solutions, which form a straight (or near straight) line. Refer to the following code, and attached plot. begin code--- library (barsurf) vF1 <- function (u, v) { n <- length (u) k <- numeric (n) for (i in seq_len (n) )