Displaying 1 result from an estimated 1 matches for "auto74".
Did you mean:
auto4
2011 Mar 10
2
R beginner - Error in as.vector(x, mode)
...h "masking".
Finally, when I ran the example in the systemfit documentation for
nlsystemfit everything went fine. The major structural difference I
can see between the codes is they use data() where as I do not.
Any advice would be truly appreciated.
library(systemfit)
library(foreign)
auto74 <- read.dta("auto74.dta")
eqWeight <- weight ~ a0 + a1*mpg + a2*price + a3*trunk
eqLength <- length ~ b0 + b1*mpg + b2*price + b3*trunk
model <- list(eqWeight, eqLength)
start.values <- c(a0=0, a1=0, a2=0, a3=0, b0=0, b1=0, b2=0, b3=0)
nlsystemfit("OLS", model, st...