Re: [R] Using GEE with sample weights

2012-04-30 Thread Haynes, Maurice (NIH/NICHD) [E]
See the function geeglm() in package:geepack

Maurice

O. Maurice Haynes, Ph.D.
Statistician, Child and Family Research Section
Laboratory for Comparative Ethology
Eunice Kennedy Shriver
National Institute of Child Health and Human Development
NIH, DHHS
6705 Rockledge Drive, Suite 8030
Bethesda, Maryland  20892
Phone: 301-496-8180
E-mail: mh1...@nih.gov

-Original Message-
From: Stefán Hrafn Jónsson [mailto:shj...@gmail.com] 
Sent: Monday, April 30, 2012 6:05 AM
To: r-help@r-project.org
Subject: [R] Using GEE with sample weights

Dear R community

I am using the gee package to run logistics regression on paired cases from a 
panel sample.

We are getting request from a reviewer to use sample weights to account for 
different level of attrition.

After searching the documentation I am unable to find a way to incorporate 
sample weights into the gee formula. I found a way to incorporate precision 
weight but I understand that I cant use that function for sample weight.

I appreciated all help on this issue.

Regards
Stefan Jonsson

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] package installation error

2009-09-02 Thread Haynes, Maurice (NIH/NICHD) [E]
Hi,

Thank you for your responses.

Héctor, I had also discovered the solution you suggested.  However, when I 
install files from a list (such as pckg.list), failure in the installation of 
one package in the list results in none of the packages later in the list being 
installed.  After moving the 'problem' package up one level and deleting the 
empty temporary directory, the name and name attribute of the problem package 
must be removed from the list before loading the list and calling the function 
install.packages() again.  With multiple failures in the list of packages, that 
can get tedious.

Duncan, I suspect you are correct that a file within the directory for the 
'failed' package may have been locked by an antivirus program or some other 
background process so that the package directory cannot be renamed.  However, 
although I am able to disable the virus check of files on my home desktop and 
laptop (which I will do in the future), I have no control over such 
applications as the enterprise-wide antivirus program in my office desktop.  (I 
have administrative rights only on my local machine.)  Could the internal 
function normalizePath() be rewritten so that before it attempts to convert the 
path of a package directory to a subdirectory of the library directory it 
checks whether it has access to the file and pauses until it has access or for 
some reasonably short time?  Please excuse me if I have just displayed 
ignorance or arrogance.  I suspect, however, that there are more than a few 
users of R who have these problems and cannot control all the background 
applications on their machine.

Again, thank you both.


Maurice
-Original Message-
From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] 
Sent: Wednesday, September 02, 2009 6:32 AM
To: Héctor Villalobos
Cc: Haynes, Maurice (NIH/NICHD) [E]; r-help@r-project.org
Subject: Re: [R] package installation error

Héctor Villalobos wrote:
 Hi,


 This also happens in 2.9.1 and 2.9.2. My personal solution is to look 
 under ' C:\Program Files\R\R-2.9.0\library' for a bizarre-named 
 directory (starts with an 'f' and has numbers and letters mixed) , 
 which contains the package directory (in this case 'robustbase') and 
 move it up one level (like the other packages). This is annoying, but 
 so far is the only solutions I have found.

I haven't been able to reproduce this, so all I can do is guess at the 
cause, but it looks as though a directory rename failed.  One cause for 
that would be that some application (like a virus checker, or file 
indexer, or some other background process) has a file open within the 
directory.  You could try disabling all such programs (though it's not 
easy in Windows, there are lots of ways to start them) and see if that 
helps.

Duncan Murdoch


 On 31 Aug 2009 at 9:32, Duncan Murdoch wrote:

  On 31/08/2009 8:53 AM, Haynes, Maurice (NIH/NICHD) [E] wrote:
   On Sun April 19, you posted the following on R-help:
   After installing 2.9.0 I tried loading packages, but keep getting 
 the following error.
  
   package 'robustbase' successfully unpacked and MD5 sums checked
   Error in normalizePath(path) :
path[1]=C:\Program Files\R\R-2.9.0\library/robustbase: The 
 system cannot find the file specified
  
  
   I have had the same problem for months.  Have you found a solution?
 
  There have been two patch releases since 2.9.0.  Have you tried 2.9.2?
 
  Duncan Murdoch
 
  __
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide 
 http://www.R-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.
 


 -- 
 Héctor Villalobos hvill...@ipn.mx
  CICIMAR - IPN
  A.P. 592. Col. Centro
  La Paz, Baja California Sur, MÉXICO. 23000
  Tels. (+52 612) 122 53 44; 123 46 58; 123 47 34  ext. 82425
  Fax.  (+52 612) 122 53 22

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] package installation error

2009-08-31 Thread Haynes, Maurice (NIH/NICHD) [E]
On Sun April 19, you posted the following on R-help:
 After installing 2.9.0 I tried loading packages, but keep getting the 
 following error.

 package 'robustbase' successfully unpacked and MD5 sums checked
 Error in normalizePath(path) :
  path[1]=C:\Program Files\R\R-2.9.0\library/robustbase: The system cannot 
 find the file specified


I have had the same problem for months.  Have you found a solution?

Maurice

O. Maurice Haynes, Ph.D.
Statistician, Child and Family Research Section
Laboratory for Comparative Ethology
Eunice Kennedy Shriver
National Institute of Child Health and Human Development
NIH, DHHS
6705 Rockledge Drive, Suite 8030
Bethesda, Maryland  20892
Phone: 301-496-8180
E-mail: mh1...@nih.govmailto:mh1...@nih.gov




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.