Re: [R] Multi-level (nested) correlation structures via geepack package

2020-07-12 Thread dulcalma dulcalma
Hi Your choice of package should partly depend on the type of dependent variable or Y that you are going to be dealing with categorical/ordinal data may involve different packages than continuous or binary data see multgee for one. The number of samples can also make a difference GEE with the "

Re: [R] Using Rvest to scrape pages

2020-07-12 Thread David Winsemius
On 7/12/20 10:42 AM, Tiffany Adekola wrote: Dear All, I am just learning how to use R programming. I want to extract reviews from a page and loop till I extract for all pages: #specify the first page URL fpURL <- 'https://wordpress.org/support/plugin/easyrecipe/reviews/' #read the HTML conte

Re: [R] Multi-level (nested) correlation structures via geepack package

2020-07-12 Thread Bert Gunter
You may get lucky, but generally such package-specific questions don't get responses here. There are about 2 packages after all. You might do better posting on the r-sig-mixed-models list or by asking the package maintainer (?maintainer) whether there is some sort of support list for the packag

Re: [R] How to differ stats_cor labels by group on a ggplot

2020-07-12 Thread Rui Barradas
Hello, The code below puts the group names as subscripts to 'R'. The trick is to create each of the labels with those names before pasting the ..p.label.. This is done by Map, calling a function f defined outside the for loop. I have also changed your code a bit, simplifying parts of it. 1. I

[R] Using Rvest to scrape pages

2020-07-12 Thread Tiffany Adekola
Dear All, I am just learning how to use R programming. I want to extract reviews from a page and loop till I extract for all pages: #specify the first page URL fpURL <- 'https://wordpress.org/support/plugin/easyrecipe/reviews/' #read the HTML contents in the first page URL contentfpURL <- read_h

Re: [R] Multi-level (nested) correlation structures via geepack package

2020-07-12 Thread Phat Chau
Hello, I have a multi-level, cohort dataset with three levels: repeat measures of a response (level 1), that are collected from individual participants (level 2) who are students within a school (level 3). I would like to do a generalized estimating equation (GEE) analysis of this clustered dat

Re: [R] Rmpfr correlation

2020-07-12 Thread tring
Thanks a lot - solved the issue! BW Troels -Oprindelig meddelelse- Fra: Rui Barradas Sendt: 12. juli 2020 12:59 Til: tr...@gvdnet.dk; r-help mailing list Emne: Re: [R] Rmpfr correlation Hello, Why not write a function COR? Not one as general purpose as stats::cor but a simple one, t

Re: [R] Rmpfr correlation

2020-07-12 Thread Rui Barradas
Hello, Why not write a function COR? Not one as general purpose as stats::cor but a simple one, to compute the sample Pearson correlation only. library(Rmpfr) COR <- function(x, y){ precBits <- getPrec(x)[1] n <- mpfr(length(x), precBits = precBits) x.bar <- mean(x) y.bar <- mean(y)

[R] Rmpfr correlation

2020-07-12 Thread tring
Dear friends - I'm calculating buffer capacities by different methods and need very high precision and package Rmpfr is working beautifully. However, I have not been able to find out how to keep precision when finding correlations. library(Rmpfr) KA <- mpfr(10^-4.6, 128) x <- rnorm(100)*KA y <-