Skip to content

Error in dim(data) <- dim : attempt to set an attribute on NULL.

2 messages · arunkumar1111, R. Michael Weylandt

#
This post has NOT been accepted by the mailing list yet.
Hi,

  I'm passing the input parameters and calculating the linear regression.
some time i'm getting the error

Error in dim(data) <- dim : attempt to set an attribute on NULL.

But when i restart my R studio, then it runs.
Please help to resolve this problem.

My code looks like

dataset <- read.csv("C:/data/data1.csv")
formula12= "Y~X1+X2"
LinearRegression <- lm(formula=formula12,data=dataset, singular.ok=TRUE)
vif(LinearRegression)

Please help me to solve this issue 

--
View this message in context: http://r.789695.n4.nabble.com/Error-in-dim-data-dim-attempt-to-set-an-attribute-on-NULL-tp3954811p3954811.html
Sent from the R help mailing list archive at Nabble.com.
#
This isn't reproducible for a few reasons, but notably that you didn't
provide data or tell us which vif() function you are using. (There are
a few from different packages). Can you clarify which package and see
if it can be done with simulated data / post a working sample of your
data?

It may just be a bug in RStudio: can you reproduce this in a command
line session?

Michael
On Mon, Oct 31, 2011 at 12:50 AM, arunkumar1111 <akpbond007 at gmail.com> wrote: