Displaying 20 results from an estimated 40000 matches similar to: "Problem installing packages"
2006 Dec 19
4
Upgrading
Hi!
As per Thomas' advice, I upgraded R by using "update.packages()" and got the following warning messages:
Warning messages:
1: installation of package 'lmtest' had non-zero exit status in: install.packages(update[, "Package"], instlib, contriburl = contriburl,
2: installation of package 'quadprog' had non-zero exit status in: install.packages(update[,
2024 Jan 11
4
arrow on contour line
Hello,
I am drawing contour lines for a function of 2 variables at one level of
the value of the function and want to include a small arrow in any
direction of increase of the function. Is there some way to do that?
Below is an example that creates the contour lines. How do I add one small
arrow on each line in the direction of increase of the function (at some
central point of the contour
2009 Feb 27
3
question about 3-d plot
Hi R Users,
I have produced a simulated scatter plot of y versus x tightly clustered
around the 45 degree line through the origin with the following code:
x <- seq(1,100)
y <- x+rnorm(100,0,10)
plot(x,y,col="blue")
abline(0,1)
Is there some way to generate a 3-dimensional analogue of this? Can I get a
similar simulated scatter plot of points in 3 dimensions where the points
2007 Oct 24
3
how to loop over a group of variables?
Hi All,
I have a data frame with a group of variables named b1, b2, b3, ..., b18. These variables take the value 1, 2 or NA. For each observation, I want to do some computation by looping over the values for the group of variables: b1 to b18. In STATA I would do:
forval i=1/18 {
--- use b`i' for computation ----
}
How can this be done in R?
Deepankar
2007 Apr 23
4
Estimates at each iteration of optim()?
I am trying to maximise a complicated loglikelihood function with the "optim" command. Is there some way to get to know the estiamtes at each iteration? When I put "control=list(trace=TRUE)" as an option in "optim", I just got the initial and final values of the loglikelihood, number of iterations and whether the routine has converged or not. I need to know the
2007 Nov 06
4
C++ and R interface
Hi All,
I am trying to do an ML estimation in R. My likelihood function has
several nested loops and so it takes a lot of time (days when I use the
genetic algorithm for optimization) for the optimization to finish.
Unable to avoid loops, I am thinking of writing the likelihood function
in C++ and calling it from within R when using *optim()*. I found that
one can call C functions (once they have
2007 Apr 18
3
Problems in programming a simple likelihood
As part of carrying out a complicated maximum likelihood estimation, I
am trying to learn to program likelihoods in R. I started with a simple
probit model but am unable to get the code to work. Any help or
suggestions are most welcome. I give my code below:
************************************
mlogl <- function(mu, y, X) {
n <- nrow(X)
zeta <- X%*%mu
llik <- 0
for (i in 1:n) {
if
2010 Apr 25
1
problem with Rcmdr Plugins
Dear R Development People:
I have written a couple of plugins for Rcmdr and they do not seem to work with R-2.11.0.
Here is the output:
> library(RcmdrPlugin.epack)
Loading required package: Rcmdr
Loading required package: tcltk
Loading Tcl/Tk interface ... done
Loading required package: car
--- Please select a CRAN mirror for use in this session ---
Rcmdr Version 1.5-4
Attaching package:
2012 Mar 23
2
Help with R package forecast
When I type library() to see what is installed the following list in RED
comes up.
Packages in library '/home/jason/R/i686-pc-linux-gnu-library/2.13':
abind Combine multi-dimensional arrays
aplpack Another Plot PACKage: stem.leaf, bagplot,
faces, spin3R, and some slider functions
biglm bounded memory linear and
2006 Jun 08
2
Query about building R-2.3.1 for Ubuntu
Hi All:
Is a distribution of R version 2.3.1 (the current version) available for the Ubuntu Linux? If I want to build a .deb package for R-2.3.1 for Ubuntu, are there specific requirements that I should be aware of? Is a tutorial available? I searched the web, and the repositories, but oculd not locate an appropriate file.
TIA,
Arin Basu
2006 Jul 18
2
FW: Large datasets in R
Hi,
I have two further comments/questions about large datasets in R.
1. Does R's ability to handle large datasets depend on the operating
system's use of virtual memory? In theory, at least, VM should make the
difference between installed RAM and virtual memory on a hard drive
primarily a determinant of how fast R will calculate rather than whether or
not it can do the calculations.
2006 Dec 19
2
attach and object masking
Hi R users!
I am new to R. When I try to attach a simple dataset using the attach() command, I get the following message:
> attach(data1)
The following object(s) are masked from package:base :
write
Can someone tell me what this means? (`write' is the name of a variable in the dataset). And, do I need to do do something about this.
Thanks.
2011 Nov 20
3
install.package tseries
I have not been successfull in downloading tseries package in the R in my macbook air.
The message sent is:Error in dyn.load(file, DLLpath = DLLpath, ...) :
imposs?vel carregar objeto compartilhado '/Library/Frameworks/
Do you have any clue?
2007 Oct 26
1
finding birth position
Hi All,
I have data on the sequence of births for families with completed
fertility cycle (in a data frame); the relevant variables are called b1,
b2, b3, b4, b5, b6 and record the birth of the first, second, ..., sixth
child. So,
b1=1 if the first birth is male,
b1=2 if the first birth is female,
and b1=NA if the family did not record any first birth.
Similarly for b2, b3, b4, b5 and b6.
I
2006 Mar 09
2
tcltk loading in R-2.2.1 from src
Hi,
Having trouble loading tcltk in R 2.2.1 built from source.
./configure, make, make check, and make install run ok.
> library(tcltk)
Error in firstlib(which.lib.loc, package) :
Tcl/Tk support is not available on this system
Error in library(tcltk) : .First.lib failed for 'tcltk'
even though it is listed in library() output.
I have the same problem even if i compile
2007 May 24
3
Problem with numerical integration and optimization with BFGS
Hi R users,
I have a couple of questions about some problems that I am facing with
regard to numerical integration and optimization of likelihood
functions. Let me provide a little background information: I am trying
to do maximum likelihood estimation of an econometric model that I have
developed recently. I estimate the parameters of the model using the
monthly US unemployment rate series
2015 Jan 08
4
unloadNamespace
In the documentation the closed thing I see to an explanation of this is
that ?detach says "Unloading some namespaces has undesirable side effects"
Can anyone explain why unloading tseries will load zoo? I don't think
this behavior is specific to tseries, it's just an example. I realize
one would not usually unload something that is not loaded, but I would
expect it to do
2010 May 06
1
question about rolling regressions
Hi All,
I am using R 2.11.0 on a Ubuntu machine. I have a time series data set and
want to run rolling regressions with it. Any suggestions would be useful.
Here are the details:
(1) I convert relevant variables into time series objects and compute first
differences:
vad <- ts(data$ALLGVA/data$GDPDEF, start=1948, frequency=1)
emp <- ts(data$ALLEMP, start=1948, frequency=1)
vad.dif1 <-
2010 Jun 01
1
TSA package dependencies
In Ubuntu 10.04, from the R command line
install.packages('TSA',dep=TRUE)
downloads & installs about 100 packages from CRAN, including some big
ones like Zelig. It's only supposed to depend on leaps, locfit, mgcv,
& tseries & through them akima, lattice, quadprog, zoo, & stats.
Not a big problem of course, but I wondered if anyone else had noticed
this behaviour.
2007 Oct 30
6
trouble installing building packages from source using R 2.6.0 on Ubuntu Gutsy AMD64
I have recently upgraded to Ubuntu Gutsy and, for the first time, am
using a 64-bit installation. After failing miserably to install R from
source, not a problem for me in the past with a 32-bit install, I went
the route of using the Debian Etch build. This went smoothly, but I am
unable to update my numerous R and BioConductor packages, getting
non-zero exit status errors on each package. Is