search for: hhid

Displaying 5 results from an estimated 5 matches for "hhid".

Did you mean: hid
2006 Jun 20
3
Create variables with common values for each group
...ar all, sorry, this is for sure really basic, but I searched a lot in the internet, and just couldn't find a solution. The problem is to create new variables from a data frame which contains both individual and group variables, such as mean age for an household. My data frame: df hhid h.age 1 10010020 23 2 10010020 23 3 10010126 42 4 10010126 60 5 10010142 20 6 10010142 49 7 10010142 52 8 10010150 18 9 10010150 51 10 10010150 28 where hhid is the same number for each household, h.age the age for each household member. I tried tapply, by...
2011 Jun 16
1
Specify ID variable in daisy{cluster}
Hi All - I am using the daisy function from the cluster library to create a dissimilarity matrix. I'm going to use that matrix to run a cluster analysis. My participants are identified with the variable, hhid. However, when I try to keep hhid in the dataset that I use to create the dissimilarity matrix, daisy uses it to create the matrix rather than ignoring it as an ID variable. I need to have the ID variable so I can later on identify which cluster each participant was classified as. Any thoughts w...
2011 Dec 26
4
Summary tables of large datasets including character and numerical variables
...R and other function as part of Hmisc or Psych package do not work for me. How can I get a table from an R data.frame that has the following structure (header row and example). Rowname Character/Integer Length Non-Missing Minimum Maximum Mean SD HHID Integer 12 32,344 114455007701 514756007812 2.345 x 10^10 1.456 x 10^10 Head Character 38 24,566 - - -...
2005 Oct 09
1
enter a survey design in survey2.9
...: (12 regions) each region is divised in two regions / Urbain and rural. this are strata in Rural : PSU are subdivision , SSU are EA and TSU are households in Urban : PSU are EA , SSU are households. I use svydesign function as follow : esi<-svydesign(id=~subdiv+EA+HHID,strata=~REGION+AREATYP,fpc=~FPC1+FPC2FPC3,weig=~pw,nest=T) FPC1: number of subdivision in each strata FPC2: number of EA in each subdivision FPC3: number of HH in each EA. pw : sampling weights but I have this error message : erron in data.frame(strata, 1:i,...) I dont understand why ! Can someon...
2011 Feb 28
4
mlogit.data
I am trying to estimate multinomial logit models off of a .csv table in IDCASE IDALT format where I have ROWS HHID PERID CASE ALTNUM NUMALTS CHOSEN IVTT OVTT TVTT COST DIST WKZONE HMZONE RSPOPDEN RSEMPDEN WKPOPDEN.... 1 1 2 1 1 1 5 1 13.38 2.00 15.38 70.63 7.69 664 726 15.52 9.96 37.26 2 2 2 1 1 2 5 0 18.38 2.00 20.38 35.32...