SCM

[#263] ROC function failing when used inside another function

Date:
2008-12-11 17:32
Priority:
3
State:
Open
Submitted by:
Michal Figurski (mfigrs)
Assigned to:
Nobody (None)
Hardware:
None
Product:
None
Operating System:
Windows XP
Component:
None
Version:
None
Severity:
major
Resolution:
None
URL:
Summary:
ROC function failing when used inside another function

Detailed description
I am trying to make my life simpler and I have written a small function:

subRoc<-function(col,d){
b=subset(mydata, Day<d)
a=ROC(form=b[,1]~b[,col], plot="ROC")
}

Using this function I was trying to obtain ROC plots of numerous variables in selected time ranges (Day).

However, the ROC function doesn't see the "b" data.frame that was constructed inside the subRoc function.

Comments:

No Comments Have Been Posted

Attached Files:

Changes

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business Powered By FusionForge