Displaying 4 results from an estimated 4 matches for "w13".
Did you mean:
13
2010 Dec 17
3
Alternative to extended recode sintax?
...eadable labels, such as 2010-W01 for the first week of 2010, 2009-W34 for the 34th week in 2009, etc....is there an easier way to achieve that than having to write out the all recode sintax:
library(car)
dataset$newvar <- recode(dataset$oldvar, "
c('2009-03-30 00:00:00')='2009-W13';
c('2009-04-06 00:00:00')='2009-W14';
# etc...
c('2010-12-05 23:00:00')='2009-W48';
c('2010-12-12 23:00:00')='2009-W49';
# etc...this part should be updated with time unless I'll find some automatic procedure
")
Thanks,
Luca
Luca...
2013 Jan 09
2
Using objects within functions in formulas
...a function to pass to glmer()
and I'm having a problem that the following example will illustrate:
library(lme4)
y1 = rnorm(10)
x1 = data.frame(x11=rnorm(10), x12=rnorm(10), x13=rnorm(10))
x1 = data.matrix(x1)
w1 = data.frame(w11=sample(1:3,10, replace=TRUE), w12=sample(1:3,10,
replace=TRUE), w13=sample(1:3,10, replace=TRUE))
test1 <- function(x2, y2, w2) {
print(str(w2))
form = as.formula(paste("y2 ~ x2 +" ,paste("(1|w2$", names(w2), ")",
collapse=" + ", sep="")))
m1 = glmer(form)
return(m1)
}
model1 = test1(x2=x1, y2=y1, w2=w1)...
2007 Apr 18
0
PART TIME JOB OPPORTUNITY
...e the following details so that i can send you the employment form:
Name:
Home address:
State/Country:
E-mail address:
and phone number for me to get in contact with you.
DO NOT TURN THIS OFFER DOWN!! GREAT OPPORTUNITY!!!
UK Branch Office:
Jummy Pilson
505 Northcroft Road, Ealing London W13 9SU.
Company Name: Scottish Ent.
salesjummy@fastermail.com
2007 Apr 18
0
PART TIME JOB OPPORTUNITY
...e the following details so that i can send you the employment form:
Name:
Home address:
State/Country:
E-mail address:
and phone number for me to get in contact with you.
DO NOT TURN THIS OFFER DOWN!! GREAT OPPORTUNITY!!!
UK Branch Office:
Jummy Pilson
505 Northcroft Road, Ealing London W13 9SU.
Company Name: Scottish Ent.
salesjummy@fastermail.com