Displaying 2 results from an estimated 2 matches for "estnew".
Did you mean:
testnew
2003 Sep 30
1
can't get names from vector in nlm calls
...ls <- obj
}
print( "calling nlstest" )
demand2 <- q ~ d0 + d1 * p + d2 * d
supply2 <- q ~ s0 + s1 * p + s2 * f + s3 * a
system2 <- list( demand2, supply2 )
sv2 <- c(d0=3,d2=4,d1=4.234,s0=-2.123,s2=2.123,s3=4.234,s1=0.234)
### call the nlm function to get the estimates...
estnew <- nlm( knls, sv2, hessian=TRUE, print.level=1, eqns=system2,
data=kmenta, fitmethod="OLS" )
My question is why can't I simply call names on the vector (sv2) that is
passed into the nlm function to get the parameters?
Thanks,
Jeff.
---
Jeff D. Hamann
Hamann, Donald and Associ...
2003 Oct 06
1
getting names of p vector in nlm function...
...ls <- obj
}
print( "calling nlstest" )
demand2 <- q ~ d0 + d1 * p + d2 * d
supply2 <- q ~ s0 + s1 * p + s2 * f + s3 * a
system2 <- list( demand2, supply2 )
sv2 <- c(d0=3,d2=4,d1=4.234,s0=-2.123,s2=2.123,s3=4.234,s1=0.234)
### call the nlm function to get the estimates...
estnew <- nlm( knls, sv2, hessian=TRUE, print.level=1, eqns=system2,
data=kmenta, fitmethod="OLS" )
My question is why can't I simply call names on the vector (sv2) that is
passed into the nlm function to get the parameters? I was assuming that the
names, if available, are always present...