Displaying 20 results from an estimated 7000 matches similar to: "Creating .Rout.save files for package subdirectory "tests""
2004 Mar 16
2
R CMD check warning on predict.systemfit
Hi,
I added a new function "predict.systemfit" to our package "systemfit" to make
it closer to other packages (e.g. lm). Now "R CMD check" complains that the
generic function "predict" has only the argument "object", while our function
"predict.systemfit" has more arguments. However, the function "predict.lm"
has also more
2004 Nov 29
3
systemfit - SUR
Hello to everyone,
I have 2 problems and would be very pleased if anyone can help me:
1) When I use the package "systemfit" for SUR regressions, I get two
different variance-covariance matrices when I firstly do the SUR
regression ("The covariance matrix of the residuals used for
estimation") and secondly do the OLS regressions. In the manual for
"systemfit" on page
2003 Feb 20
2
is.numeric
Hi,
I have a vector, which contains both strings and numbers, e.g.
> foo <- c("str1",1234,"str2",0.9876)
I want to know if a distinct element of the vector is a string or a number and
took "is.numeric", but
> is.numeric(foo[2])
[1] FALSE
because R treats the numbers in a mixed vectors as strings:
> foo
[1] "str1" "1234"
2004 Nov 01
5
make apply() return a list
Hi,
I have a dataframe (say myData) and want to get a list (say myList) that
contains a matrix for each row of the dataframe myData. These matrices are
calculated based on the corresponding row of myData. Using a for()-loop to do
this is very slow. Thus, I tried to use apply(). However, afaik apply() does
only return a list if the matrices have different dimensions, while my
matrices have
2007 Oct 30
2
Splitting up the micEcon package?
Dear R Users:
The functions of our "micEcon" package [1,2] can be subdivided into three
categories:
- microeconomic demand and firm models
- sample selection models (mainly selection())
- routines for (likelihood) maximisation (e.g. maxLik(), maxNR(), maxBHHH())
(mainly used for ML estimation of sample selection models)
Although sample selection models are often used in
2004 Aug 25
1
License for including datasets in packages
Dear All,
I would like to publish a function for 'heckit' estimations together with two
examples from Greene's and Wooldridge's econometric textbooks.
These examples use the dataset of Mroz (1987) that is also available in John
Fox' "car" package. However, not all variables that are used in my examples
are available in the "car" package. Therefore, I
2005 Aug 16
1
Fwd: Documenting data sets with many variables
Hi,
since nobody answered to my first message, I try to explain my problem more
clearly and more general this time:
I have a data set in my R package "micEcon", which has many variables (82).
Therefore, I would like to avoid to describe all variables in the "\format"
section of the documentation (.Rd file). However, doing this lets "R CMD
check" complain about
2005 Dec 02
3
masked from package:base?
I am confused by the following description in
http://www.maths.lth.se/help/R/.R/library/systemfit/html/hausman.systemfit.html
what does the "Not run" mean? if we do not load systemfit, how can we run
the following code?
## Not run: library( systemfit )
data( kmenta )
attach( kmenta )
...
I install the package of systemfit, and run the code.
I got the warning:
> library( systemfit
2006 Sep 28
2
R CMD build when the package name is different from the directory name
Hi,
I was really happy when I saw that in R version 2.3.0 "R CMD check" works for
packages whose package name is different from the directory name in which it
is located (see http://cran.r-project.org/src/base/NEWS).
Now, I can have branches of my packages in directories like
"[...]/branches/<version number>/", while I had to use
"[...]/branches/<version
2004 Feb 19
6
R for economists (was: Almost Ideal Demand System)
Hi,
I did not find any web page about using R in economics and econometrics so
far. However, this does not mean that there is none (searching with google
for "R" and "economics" gives many pages about economics and a name like
Firstname R. Lastname on it ;-)).
Does anybody in the list does know such a web page?
If not, I will be happy if you, Ajay, could build and
2003 Sep 26
2
checking generic/method consistency
Hi,
I wrote a package for linear programming and want to submit it to CRAN.
Since the package 'quadprog' has a function with the name 'solve.QP' to
perform Quadratic Programming, I named my (main) function 'solve.LP'.
However 'R CMD check' gives one warning:
* checking generic/method consistency ... WARNING
solve:
function(a, b, ...)
solve.LP:
2007 Dec 09
1
Obtaining names of further arguments ('...')
Hi,
I would like to obtain the names of all objects that are provided as further
arguments ("...") in a function call. I have created a minimal example that
illustrates my wish (but isn't useful otherwise):
f1 <- function( ... ) return( deparse( substitute( ... ) ) )
x1 <- 1
x2 <- 2
x3 <- 3
f1( x1, x2, x3 )
[1] "x1"
However, I would like to obtain the
2006 Jul 19
1
WLS ins systemfit question
How does one specify the weights for WLS in the
systemfit command ?
That is, there is a weight option in lm(), but there
doesn't seem to be weight option for systemfit("WLS")
Thanks!
2007 Dec 18
0
New version of systemfit (not backward compatible)
Dear R users,
the systemfit package contains functions for fitting systems of simultaneous
equations by various estimation methods (e.g. OLS, SUR, 2SLS, 3SLS).
Currently version 0.8 of systemfit is available on CRAN. However, shortly we
will upload version 1.0, which is NOT BACKWARD COMPATIBLE. The changes that
broke backward compatibility were necessary to make systemfit() more similar
to
2007 Dec 18
0
New version of systemfit (not backward compatible)
Dear R users,
the systemfit package contains functions for fitting systems of simultaneous
equations by various estimation methods (e.g. OLS, SUR, 2SLS, 3SLS).
Currently version 0.8 of systemfit is available on CRAN. However, shortly we
will upload version 1.0, which is NOT BACKWARD COMPATIBLE. The changes that
broke backward compatibility were necessary to make systemfit() more similar
to
2005 Apr 20
2
heckit / tobit estimation
Dear All,
we (Ott Toomet and I) would like to add functions for maximum likelihood (ML)
estimations of generalized tobit models of type 2 and type 5 (*see below) in
my R package for microeconomic analysis "micEcon". So far we have called
these functions "tobit2( )" and "tobit5( )".
Are these classifications well known? How are these functions called in other
2006 Mar 21
0
New version of 'systemfit'
Dear R users,
The authors of the systemfit package have released a new version of this
package with substantial enhancements.
The systemfit package contains functions for fitting simultaneous systems of
linear equations using Ordinary Least Squares (OLS), Weighted Least Squares
(WLS), Seemingly Unrelated Regressions (SUR), Two-Stage Least Squares (2SLS),
Weighted Two-Stage Least Squares
2006 Mar 21
0
New version of 'systemfit'
Dear R users,
The authors of the systemfit package have released a new version of this
package with substantial enhancements.
The systemfit package contains functions for fitting simultaneous systems of
linear equations using Ordinary Least Squares (OLS), Weighted Least Squares
(WLS), Seemingly Unrelated Regressions (SUR), Two-Stage Least Squares (2SLS),
Weighted Two-Stage Least Squares
2004 Feb 12
1
Almost Ideal Demand System
Hi there fellow R users,
Has anyone got an R example of applying an Ideal demand system, possibly
using the library systemfit??
Thanks
Wayne
Dr Wayne R. Jones
Senior Statistician / Research Analyst
KSS Limited
St James's Buildings
79 Oxford Street
Manchester M1 6SS
Tel: +44(0)161 609 4084
Mob: +44(0)7810 523 713
KSS Ltd
Seventh Floor St James's Buildings 79 Oxford Street
2007 May 09
1
Errors with systemfit package and systemfitClassic()
I get the following error message after using the sysfit package's function 'systemfitClassic':
Error in data[[eqnVar]] : subscript out of bounds
When I do this:
MSYS1 <- cbind(Y, Num, F, PO, PD, GO, GD)
MigOLS1 <- systemfitClassic("OLS", F ~ PO + PD + GO + GD, eqnVar = "Num", timeVar = "Y", data = MSYS1)
and I get this error message:
Error in