Displaying 1 result from an estimated 1 matches for "orfun".
Did you mean:
ofun
2010 Apr 12
1
R CMD check tells me 'no visible binding for global variable ', what does it mean?
...'x'
I appreciate that this is only a NOTE and so I assume is R's
equivalent of 'This is perfectly legal but I wonder whether it is
really what you intended' but I would like to understand it.
In the relevant function addlinear the following function is defined locally:
orfun <- function(x, oddsratio) {1/(1+1/(oddsratio * (x/(1-x))))}
and then used later in curve
curve(orfun(x, exp(estimate)), from = 0.001, to = 0.999, add = TRUE)
These are the only occurrences of 'x'.
Is it just telling me that I have never assigned a value to x? Or is
it more si...