Hi all,
In using the identify command, I get the following message
plot(hatvalues(scireg3))
abline(h=.0154,lty=2) # plots a reference line at (k + 1)/n
identify(1:1165, hatvalues(scireg3),row.names(sciach))
Error in xy.coords(x, y) : 'x' and 'y' lengths differ
which doesn't allow me to
2008/11/20 David Kaplan [EMAIL PROTECTED]:
Hi all,
In using the identify command, I get the following message
plot(hatvalues(scireg3))
abline(h=.0154,lty=2) # plots a reference line at (k + 1)/n
identify(1:1165, hatvalues(scireg3),row.names(sciach))
Error in xy.coords(x, y) : 'x' and 'y'
On 21/11/2008, at 9:19 AM, David Kaplan wrote:
Hi all,
In using the identify command, I get the following message
plot(hatvalues(scireg3))
abline(h=.0154,lty=2) # plots a reference line at (k + 1)/n
identify(1:1165, hatvalues(scireg3),row.names(sciach))
Error in xy.coords(x, y) : 'x' and
Let me try to be more specific.
The x y coordinates are different because of NAs in the dataset. In
this analysis, a set of hat values (a measure of influence in
regression) is given for each observation. On the basis of the
regression that was run to get these hat values, the sample size
2008/11/20 David Kaplan [EMAIL PROTECTED]:
Let me try to be more specific.
The x y coordinates are different because of NAs in the dataset. In this
analysis, a set of hat values (a measure of influence in regression) is
given for each observation. On the basis of the regression that was run
Reading in between the lines a little, maybe you want
lm(..., na.action = na.exclude)
That should return missing values for the influence statistics when
the predictor or responses is missing in the input.
Hadley
On Thu, Nov 20, 2008 at 4:19 PM, David Kaplan
[EMAIL PROTECTED] wrote:
Let me
6 matches
Mail list logo