search for: demog

Displaying 20 results from an estimated 25 matches for "demog".

Did you mean: demo
2011 Oct 05
1
calling a variable which in turn calls many more variables
Hi all, I am running regressions with many covariates, most of which remain the same each time (control variables). Instead of writing 30 demographic variables every regression, is there a way I could call them all at once using a variable called, perhaps "demog"? I have tried: > demog <- list(age1, age2, age3) but I get an error when I try to call a list in a regression. I also tried: > demog <- cbind(age1, age2, a...
2008 Apr 30
0
Getting variable names from as.matrix
...the similarity matrix, the plotting routine will give me the variable names on the plot itself. But, it seems that when I use the daisy program to create the similarity matrix, I can't get the program to give me variable names on the plot. Here is the input ## Sammon's MDS country.demog <- read.csv("~/Desktop/country.demog.csv") ## daisy requires loading the cluster package. It will calculate standardized Eculidean distances country.demog.dist <- daisy(country.demog,metric="euclidean",stand=TRUE) ## The following line calculates the ordinal MDS coun...
2006 Sep 28
3
complex plots using layout()
...age to be plotted a scatter plot with marginal histograms. I tried par(mfrow= ) ahead of layout(). It does not work. Could I repeat layout() to reach my point? Following is the code I use. Any advice is greatly appreciated. ================================================================= x <- demog$age y1 <- demog$mji y2 <- demog$nles xhist <- hist(x, plot=FALSE) y1hist <- hist(y1, plot=FALSE) y2hist <- hist(y2, plot=FALSE) top1 <- max(c(xhist$counts, y1hist$counts)) top2 <- max(c(xhist$counts, y2hist$counts)) xrange <- range(x,na.rm=TRUE) y1range <- range(y1,n...
2011 Aug 04
0
Problems with Z in rhierMnlRwMixture using bayesm
...ards to my Z matrix as below. > Error in Z %*% t(matrix(olddelta, ncol = nz)) : >requires numeric/complex matrix/vector arguments I think the problem is arising from the following lines in the code that I am running. >Z=NULL >nlgt=length(lgtdata) >for(i in 1:nlgt) { >Z=rbind(Z,Demog[Demog[,1]==lgtdata[[i]]$id,3:9]) I am creating a Z matrix from the variables included in the ?Demog? spreadsheet columns 3 to 9 which includes the demographic variables of the respondents. Then the rbind matches these columns with the ids in the lgtdata (which contains the choice attributes). I am...
1999 Jan 27
0
Encrypted passwords really necessary for PDC ?
...@echo 'building smbpasswd file'; @/usr/local/samba/private/buildsmbpasswd; @touch smbpasswd.time; So the process to create a new user or machine account is: - create unix account - set unix password - run yp make - set smbpasswd On Thu, 28 Jan 1999, Andrew Perrin - Demography wrote: > Date: Thu, 28 Jan 1999 03:31:32 +1100 > From: Andrew Perrin - Demography <aperrin@demog.Berkeley.EDU> > To: Multiple recipients of list <samba-ntdom@samba.org> > Subject: Re: Encrypted passwords really necessary for PDC ? > > WRONG -- mksmbpasswd only c...
2001 Feb 26
2
R ignoring quantile() in source()d file
...0% 50% 60% 70% 80% 90% 100% 0 4 10 16 24 34 45 59 74 91 181 > any ideas? Thanks. ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin aperrin at socrates.berkeley.edu - aperrin at igc.apc.org -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]...
2008 Oct 09
0
nlme Random Effects Specification
..."readout" [7] "gender" "age" "weight" [10] "height" "time.hr" Where AN is the subject identifier, machine is the machine identifier, (gender, age, weight, and height) are the demographic data, and time.hr is the time since the machine was turned on that day. I have two functions defined that take define the machine effect and the demographic effects (with appropriate return values): e.demog <- function(e0, age, weight, height, gender, m.age, m.weight,...
1999 Feb 02
1
Limits on smbclient -M?
...achines' names. man smbclient notes a 1600 byte limit to the message. Does anyone know if there's some other (lower) limit that's documented, or if this is just an oversight? Thanks- Andy --------------------------------------------------------------------- Andrew J. Perrin - aperrin@demog.berkeley.edu - NT/Unix Admin/Support Department of Demography - University of California at Berkeley 2232 Piedmont Avenue #2120 - Berkeley, California, 94720-2120 USA http://demog.berkeley.edu/~aperrin --------------------------SEIU1199
2011 May 30
1
Table Figures and Listings
...in SAS it is not difficult once you know what you are doing and what is required. My limited knowledge of R suggests that it may be a bit more difficult. Can anyone please provide me with some guidance or sample code for producing a standard table or listing. A good starting point can be a demography table. I can produce a demog table quite easily in SAS. My R knowledge is limited that's why I have ask for some sample code. Thanks for your help. Orin
2005 Feb 22
2
R-help
...orm(100),y<-rnorm(100)) z<-rnorm(100)*250 par(new=T) ## Tell R not to reinitialize graphic device ## for subsequent plots plot(x,z,col='blue',axes=F) axis(side=4,col.axis='blue') par(new=F) ################################## which can be found at : http://www.demog.berkeley.edu/faq/node21.html I also have a home made-example with exactly the same problem (pretty much the same as above) Any solution? Thanks in advance. > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32...
2001 Mar 01
1
[OT] correspondence analysis w/ non-mutually-exclusive categories
...s each unique profile is what's plotted in ca. Any advice will be met with tremendous gratitude :) Andy Perrin ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin aperrin at socrates.berkeley.edu - aperrin at igc.apc.org -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]...
2003 Apr 18
1
Help with nlme--freq weights, logit model, and more
...= 0, age = 0, age2 = 0)) Error in parse(file, n, text, prompt) : parse error Execution halted * * * * * * * * * * * * * * * * * * * * * * * * Samuel R. Lucas Associate Professor of Sociology University of California-Berkeley 410 Barrows Hall #1980 Berkeley, California 94720-1980 e-mail: Lucas at demog.berkeley.edu home-page: http://sociology.berkeley.edu/faculty/lucas/ * * * * * * * * * * * * * * * * * * * * * * * *
2012 Aug 10
1
Direct Method Age-Adjustment to Complex Survey Data
...download.file command twice to pull the (very small) data sets onto your local computer. Any guidance about how to perform this age-adjustment would be appreciated! Thanks!! Anthony Damico Kaiser Family Foundation require(foreign) require(survey) ############# download the NHANES 2009-2010 demographics and total cholesterol files ################## tf <- tempfile() download.file( " ftp://ftp.cdc.gov/pub/Health_Statistics/NCHS/nhanes/2009-2010/demo_f.xpt" , tf , mode = "wb" ) NHANES.0910.demographics.df <- read.xport( tf ) tf <- tempfile() download....
2001 Feb 25
0
Options to plot.mca ?
....mca for tailoring the plots to my needs. The documentation to the function is somewhat sparse. Thanks- Andy Perrin ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin aperrin at socrates.berkeley.edu - aperrin at igc.apc.org -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]...
2001 Mar 01
1
How to coerce data frame elements into factors?
...(factor(mediate), factor(morality))) but still, > is.factor(foo$mediate) [1] FALSE Thanks for any assistance. ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin aperrin at socrates.berkeley.edu - aperrin at igc.apc.org -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un...
2001 Mar 04
1
diagonal line through plot when using pictex()
...appens? If not, any references to PicTeX so I can figure out how to remove the line after writing the file? Thanks. ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin aperrin at socrates.berkeley.edu - aperrin at igc.apc.org -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]...
2001 Mar 09
1
rotated and/or greek mtext in pictex()?
...ve example. Right now I'm editing the pictex file by hand - is there a more elegant way to handle it? Thanks. ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin aperrin at socrates.berkeley.edu - aperrin at igc.apc.org -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]...
2001 Mar 02
0
[OT] correspondence analysis w/ non-mutually-exclusive ca tegories
...ted in ca. > > Any advice will be met with tremendous gratitude :) > > Andy Perrin > > ---------------------------------------------------------------------- > Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology > Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin > aperrin at socrates.berkeley.edu - aperrin at igc.apc.org > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.- > r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info&qu...
2001 Mar 05
2
Problems with installation on Debian
Hello- Tired of the crashes I was experiencing with r 1.2.1 on Windows ME, I downloaded the r-1.2.1.tgz under my Debian Linux box. I untared, unzipped and then I ./configure and make as specified i the FAQ. But something went wrong...I had version 0.90 per-installed, as it comes with the normal Debian distribution and now, whenever I run R, the old version is the one that executed. Can
1998 Jul 29
2
Strange problem with icons!
...e 95 fixes) http://support.microsoft.com/support/kb/articles/q128/9/32.asp http://support.microsoft.com/support/kb/articles/q150/2/15.asp http://support.microsoft.com/support/kb/articles/Q158/6/82.asp Cheers Michael Anthon TAMS Systems > -----Original Message----- > From: Andrew Perrin - Demography [mailto:aperrin@demog.Berkeley.EDU] > Sent: Wednesday, 29 July 1998 1:41 > To: Multiple recipients of list > Subject: Re: Strange problem with icons! > > > I've got similar behavior here -- it seems to me that the > desktop shortcut > is set up with a complete UN...