Skip to content

problem with svyglm

6 messages · Pablo Menese, David Winsemius

#
On Nov 23, 2012, at 12:08 PM, Pablo Menese wrote:

            
I suspect you have attach()-ed your dataset and are expecting  
regression functions to be "aware" of your column names. That  
expectation doesn't always get fulfilled since the authrs of  
regression packages are expecting dataframe arguments to be supplied.  
You may want to detach the dataset and use data= arguments in  
svydesign().

You should forget that you ever heard about the function attach().
4 days later
#
On Nov 27, 2012, at 2:31 PM, Pablo Menese wrote:

            
As might be expected if one (Stata) were a weighted analysis and the  
(R) other is using a different interpretation of "weights".
If so, then you will be the one to achieve it. You have offered no  
data in either the original question for which you have omitted  
context, and the code in this posting  is obviously incorrect.  
Furthermore you started with a `svyglm` question and this code only  
attempts to use `glm`.