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

2020-07-13 Thread Phat Chau
ARMIDALE NSW 2351 -- Original Message ------ From: "Phat Chau" To: "r-help@R-project.org" ; "sor...@math.aau.dk" Sent: Sunday, 12 Jul, 2020 At 11:52 PM Subject: Re: [R] Multi-level (nested) correlation structures via geepack package He

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] Convergence in Monte Carlo Simulation

2020-06-15 Thread Phat Chau
resets the seed so you must be calling it multiple times in some way. Michael On 14/06/2020 13:57, Phat Chau wrote: > Thank you Michael. > > I will clarify some more. The function in the first part of the code that I posted generates the simulated d

Re: [R] Convergence in Monte Carlo Simulation

2020-06-14 Thread Phat Chau
to be in the correct place to count successes. Michael On 14/06/2020 02:50, Phat Chau wrote: > Hello, > > I put together the following code and am curious about its correctness. My first question relates to the Monte Carlo simulations – the goal is to contin

Re: [R] Convergence in Monte Carlo Simulation

2020-06-14 Thread Phat Chau
Hello, I put together the following code and am curious about its correctness. My first question relates to the Monte Carlo simulations – the goal is to continue to iterate until I get n = 1000 simulations where the model successfully converges. I am wondering if I coded it correctly below with

[R] Error in gee.fit$working.correlation[1, 2] : subscript out of bounds

2020-06-05 Thread Phat Chau
Hello, I have a dataframe in R that looks like the following cluster id period u_3 timeID startTrt Ijterror y 1: 1 1 0 -1.26 11 0 1.2015 17.809 2: 1 2 0 -1.26 11 0 -1.6577 14.950 3: 1 3 0 -1.26 11 0