[R] Deleting observations from baseline that don't appear in follow up

2012-04-27 Thread justin jarvis
Hello all, I'm almost embarrassed to post this , it seems so easy. Suppose I have a baseline and follow up survey but some people are missing in the follow up: > baseline<-data.frame(id=c(3,5,7,9,12), data= runif(5)) > follow.up<-data.frame(id=c(3,7,9,12), data= runif(4)) > baseline id da

[R] Calculate the natural log of cdf between 2 intervals

2012-02-02 Thread justin jarvis
Hello all, I was wondering if there is an R function to do the following: [*] log(pnorm(x)-pnorm(y)), where x>y. I don't want all the area under the natural log of the normal pdf less than x, I only want the area between y and x. I am aware of the ability to specify log.p=TRUE, which gives me th

Re: [R] calling a variable which in turn calls many more variables

2011-10-08 Thread justin jarvis
tes. > > ?formula > > > Cheers, > Bert > > > On Wed, Oct 5, 2011 at 12:37 PM, Ista Zahn wrote: > >> Hi Justin, >> >> On Wed, Oct 5, 2011 at 3:32 PM, justin jarvis >> wrote: >> > Hi all, >> > I am running regressions with many co

[R] calling a variable which in turn calls many more variables

2011-10-05 Thread justin jarvis
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(ag

Re: [R] Tabulating Baseline Characteristics on specific observations

2011-09-20 Thread justin jarvis
at 4:54 AM, David Winsemius wrote: > > On Sep 19, 2011, at 8:49 PM, justin jarvis wrote: > > I have a data set with many missing observations. When I run a >> regression, R of course discards the observations (the whole row) that >> have "NA". I want to tabulate so

[R] Tabulating Baseline Characteristics on specific observations

2011-09-20 Thread justin jarvis
omething like Stata's e(sample), as far as I can tell. Justin Jarvis PhD student, University of California, Irvine __ 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