search for: littledud

Displaying 4 results from an estimated 4 matches for "littledud".

Did you mean: littledude
2012 Apr 27
2
Deleting observations from baseline that don't appear in follow up
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 data 1 3 0.66771988 2 5 0.28794744 3 7 0.01892821 4 9 0.64863175 5 12 0.86485882
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
2011 Sep 20
1
Tabulating Baseline Characteristics on specific observations
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 some baseline characteristics (column means) but only for the observations that R used for the regression. I tried to recreate this data frame by using na.omit on the original data frame, but this will not work as this will
2012 Feb 02
1
Calculate the natural log of cdf between 2 intervals
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 the log of the probability that X<=x. This does not help me, because the following code: