Hi Thomas,
sorry, I should have mentioned that I was using the survey package. But
thank you very much for your quick response. Your first solution worked
perfectly.
Best,
Thushyanthan
tlum...@u.washington.edu wrote:
On Mon, 2 Nov 2009, Thushyanthan Baskaran wrote:
Hi,
I am trying to
Thushyanthan Baskaran wrote:
Hi,
I am trying to write a function to compute many cross-tabulations with
the -svytable- command. Here is a simplified example of the structure of
my code (adapted from the -svytable- help file):
data(api)
func.example<-function(variable){ dclus1<-svydesign(
On Mon, 2 Nov 2009, Thushyanthan Baskaran wrote:
Hi,
I am trying to write a function to compute many cross-tabulations with the
-svytable- command. Here is a simplified example of the structure of my code
(adapted from the -svytable- help file):
In the 'survey' package -- if you say what pa
Hi,
I am trying to write a function to compute many cross-tabulations with the
-svytable- command. Here is a simplified example of the structure of my code
(adapted from the -svytable- help file):
data(api)
func.example<-function(variable){
dclus1<-svydesign(id=~1, weights=~pw,data=apiclus1
4 matches
Mail list logo