Displaying 2 results from an estimated 2 matches for "design1".
Did you mean:
design
2010 Jan 06
1
Lattice Plot formatting problem/s
...t now
http://i235.photobucket.com/albums/ee37/scotrivers/lattice_plot01.jpg
and here is the code I am using:
RN<-read.csv("N:/data.dat",header=T)
DATA<-RN[is.element(RN$age,0:3),] #select data on age
ogmod1<-glm(mig~age+length,family=binomial(link="logit"),data=DATA)
design1<-expand.grid(age=c(0:3),length=seq(30,300,by=10))
design1$pbs<-predict(ogmod1,new=design1,type="response")
design1$migr<-round(design1$pbs)
library(lattice)
wireframe(pbs~age*length,data=design1,aspect=c(1,1),main="Probability
Surface",
drape=T,scale=list(arro...
2012 Aug 10
1
Direct Method Age-Adjustment to Complex Survey Data
Hi everyone, my apologies in advance if I'm overlooking something simple in
this question. I am trying to use R's survey package to make a direct
method age-adjustment to some complex survey data. I have played with
postStratify, calibrate, rake, and simply multiplying the base weights by
the correct proportions - nothing seems to hit the published numbers on the
nose.
I am trying to