Displaying 20 results from an estimated 1000 matches similar to: "Output from examples in help files"
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
2011 Mar 28
1
maximum likelihood accuracy - comparison with Stata
Hi everyone,
I am looking to do some manual maximum likelihood estimation in R. I
have done a lot of work in Stata and so I have been using output
comparisons to get a handle on what is happening.
I estimated a simple linear model in R with lm() and also my own
maximum likelihood program. I then compared the output with Stata.
Two things jumped out at me.
Firstly, in Stata my coefficient
2005 May 25
3
Problem with systemfit 0.7-3 and transformed variables
The 'systemfit' function in systemfit 0.7-3 CRAN package seems to have a
problem with formulas that contain transformed (eg. log) variables. If I
have my data in a data frame, apparently systemfit doesn't "pass" the
information of where the variables should be taken to the transforming function.
I'm not entirely sure if this is a bug or just a limitation, I was just
2009 Aug 18
3
R formula
Hi
I was trying to estimate simultaneous equation system in R using systemfit.
I used the following commands
>library(systemfit)
> data(Kmenta)
> attach(Kmenta)
>eqDemand<-consump~price+income
> eqSupply<-consump~price+farmprice+trend
> fitsur<-systemfit("SUR",list(demand=eqDemand, supply=eqSupply))
and got the following error messege
Error in
2003 Oct 17
2
nlm, hessian, and derivatives in obj function?
I've been working on a new package and I have a few questions regarding the
behaviour of the nlm function. I've been (for better or worse) using the nlm
function to fit a linear model without suppling the hessian or gradient
attributes in the objective function. I'm curious as to why the nlm requires
31 iterations (for the linear model), and then it doesn't work when I try to
add
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
2012 Oct 28
6
Hausman test in R
Hi there,
I am really new to statistics in R and statistics itself as well.
My situation: I ran a lot of OLS regressions with different independent
variables. (using the lm() function).
After having done that, I know there is endogeneity due to omitted
variables. (or perhaps due to any other reasons).
And here comes the Hausman test. I know this test is used to identify
endogeneity.
But what I
2009 Mar 12
1
Cross-validation -> lift curve
Hi all,
I'd like to do cross-validation on lm and get the resulting lift curve/table
(or, alternatively, the estimates on 100% of my data with which I can get
lift).
If such a thing doesn't exist, could it be derived using cv.lm, or would we
need to start from scratch?
Thanks!
--
Eric Siegel, Ph.D.
President
Prediction Impact, Inc.
Predictive Analytics World Conference
More info:
2007 Jun 11
3
if statement
Hi all,
I have a rather naive question. I have the height of 100 individuals in
a table and I want to assign the tallest 30% as Case=1 and the bottom
30% as Case=0. How do I do that?
thanks.
jiong
The email message (and any attachments) is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is
2003 Sep 10
1
problems with groff
Why would this be happening, and how can I fix this - the man subsystem
hasn't been working because of this for a while. This is
FreeBSD-4.9-Prerelease:
# gdb man man
GNU gdb 4.18 (FreeBSD)
This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols
found)...
/usr/share/tmac/man: No such file or directory.
And when I go to run a manpage, I sometimes get this
2000 Jan 08
2
Man pages on HPUX (and others?)
HPUX doesn't seem to ship with a set of troff macros that can handle the
OpenSSH manpages. Maybe other OSs have this problem?
Rather than sodding about with the tmac/ directory, I think we should do
one of two things:
1. Ship a set of preformatted manpages, and either auto-install them in
$prefix/man/cat{1,1m} or just have instructions in INSTALL to do so
2. Recommend users install groff
2005 Dec 20
3
Overlaying lattice plots
Hillary, Richard M wrote:
> Morning chaps, I have a little question for your capable minds... Say
> I have an observed and predicted set of quants (in my case, length
> frequencies by year and age/length), is there a way to use lattice
> plots to plot the observed and predicted data together, panel by panel?
> Obrigado/gracias (thankyou in Galego is?...)
> Rich
Hi Richard,
If
2005 Dec 20
3
Overlaying lattice plots
Hillary, Richard M wrote:
> Morning chaps, I have a little question for your capable minds... Say
> I have an observed and predicted set of quants (in my case, length
> frequencies by year and age/length), is there a way to use lattice
> plots to plot the observed and predicted data together, panel by panel?
> Obrigado/gracias (thankyou in Galego is?...)
> Rich
Hi Richard,
If
2007 Aug 05
1
Any "special interest" in R/pic interface?
Hi Folks,
I'm wondering if there are people out there who would
be interested in what would be involved in developing
an interface between R graphics and the 'pic' language.
Explanation; 'pic' has been part of the Unix 'troff'
typesetting suite since very early days (1970s), and also
of the GNU troff: 'groff'. Its function is to act as a
preprocessor,
2006 May 08
2
On the speed of apply and alternatives?
Dear all,
I have to handle a large matrix (1000 x 10001) where in the
last column i have a value that all the preceding values in the same row
has to be compared to.
I have made the following code :
# generate a (1000 x 10001) matrix, testm
# generate statistics matrix 1000 x 4:
qnt <- c(0.01, 0.05)
cmp_fun <- function(x)
{
LAST <- length(x)
smpls <- x[1:(LAST-1)]
real
2010 Oct 11
2
filled.contour: colour key decoupled from main plot?
Dear R colleagues,
I am trying to plot some geophysical data as a filled contour on a continent map and so far the guidance from the R-help archives has been invaluable. The only bit that still eludes me is the colour key (legend) coming with filled.contour:
I prefer to generate my own colour palette, mainly based on the quantiles of tenths of the data in order to capture the whole range (of
2003 Jun 18
1
Query: Sd2Rd and nroff macros in S docs
Documentation for S3 functions is apparently written in troff markup
with macro tags like
.BG .FN .TL .DN .CS ...
Inspection of S3 documentation source files gives a pretty clear idea
of what these mean, semantically (and Sd2Rd is a perl script which
converts this markup into the Rd format, providing further semantic
information along the way).
My query is: Can anyone point to troff
2005 May 19
6
[LLVMdev] [Cygwin] groff build error
Here it is, a missing file "analyze.1" :-
/usr/bin/groff -Tps -man /usr/build/llvm/docs/CommandGuide/analyze.1 > /usr/buil
d/llvm/docs/CommandGuide/analyze.ps
troff: fatal error: can't open `/usr/build/llvm/docs/CommandGuide/analyze.1': No
such file or directory
make[2]: *** [/usr/build/llvm/docs/CommandGuide/analyze.ps] Error 1
make[2]: Leaving directory
2010 Aug 18
1
Displaying Results in Two Columns
Could I have some suggestions as to how (various ways) I can display my confidence interval results?
rm(list = ls())
set.seed(1)
func <- function(d,t,beta,lambda,alpha,p.gamma,delta,B){
d <- c(5,1,5,14,3,19,1,1,4,22)
t <- c(94.32,15.72,62.88,125.76,5.24,31.44,1.048,1.048,2.096,10.48)
post <- matrix(0, nrow = 11, ncol = B)
theta <- c(lambda,beta)
beta.hat <- 2.471546
for(j
2012 Mar 21
1
How to do 2SLS in R
Hi List
I want to carry out structural mode. Following Example l have taken from
Basic Econometrics- Damodar Gujarati :
Advertising intensity function:
Ad/S = a0 + a1M + a2 (CD/S) + a3C + a4C2 + a5Gr + a6Dur – (1)
Concentration function:
C = b0 + b1 (Ad/S) + b2 (MES/S) -(2)
Price-cost margin function:
M = c0 + c1(K/S) + c2Gr + c3C + c4GD + c5(Ad/S) + c6 (MES/S)