search for: expressoin

Displaying 1 result from an estimated 1 matches for "expressoin".

Did you mean: expression
2006 May 02
2
evaluation of expressions
Hi, all. I'm trying to automate some regression operations in R but am confused about how to evaluate expressoins that are expressed as character strings. For example: y <- ifelse (rnorm(10)>0, 1, 0) sex <- rnorm(10) age <- rnorm(10) test <- as.data.frame (cbind (y, sex, age)) # this works fine: glm (y ~ sex + I(age^2), data=test, family=binomial(link="logit"), subset=age<1)...