Serving the Quantitative Finance Community

 
User avatar
nono
Topic Author
Posts: 0
Joined: July 14th, 2002, 3:00 am

Help on R-project

November 20th, 2002, 3:22 pm

I'm quite a beginner in R and I have the following problem.I create the following function:MModel <- function(var1,var2) {+ summary(lm(formula=var1~var2,data=autoData))}. This basically call the results of an OLS regressionWhen I call this function using vectors from a data frame I get the following error message:Error in eval(expr, envir, enclos) : Object "X306465" not found.The error message is the same even when I call the data frame inside the macro.Can anybody give me an hand on this?Thanks