[R] problem installing mgcv

2012-08-14 Thread Georgiana May
Hi all,
I am running into a problem installing a package.  I am using a Mac with
OSX 10.5.8

I have been using mgcv for gam models, it has been working fine.
The mgcv listed in my directory of R packages (Package Manager) does not
load up and I receive the following:

Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/Library/Frameworks/R.framework/Versions/2.13/Resources/library/mgcv/libs/i386/mgcv.so':

dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/mgcv/libs/i386/mgcv.so,
6): Library not loaded:
@rpath/R.framework/Versions/2.13/Resources/lib/libRlapack.dylib
  Referenced from:
/Library/Frameworks/R.framework/Versions/2.13/Resources/library/mgcv/libs/i386/mgcv.so
  Reason: image not found
Error: package/namespace load failed for 'mgcv'

• When I try to re-install mgcv from a CRAN site, it downloads to a
download folder but seems not to install.  I get the following:
trying URL '
http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.13/mgcv_1.7-11.tgz
'
Content type 'application/x-gzip' length 1494134 bytes (1.4 Mb)
opened URL
==
downloaded 1.4 Mb


The downloaded packages are in

/var/folders/WA/WAw+MqFKEQePHWXaQLHGyk+++TM/-Tmp-//RtmpzPtjFx/downloaded_packages

•• Any suggestions - both as to what might have changed (a security update
on my Mac possibly interfering?) and how I might get around this?
Typically, the GUI Package Installer, and Pakage Manager have worked very
well, and I recently updated other packages without a problem.

Thank you ahead for responses,
Georgiana May
U. Minnesota

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] plotting 0,1 data

2012-08-01 Thread Georgiana May
Hello,
Anyone know why the command:
 plot(x,y) where y is a 0,1 result
sometimes plots the y values as 1,2 rather than 0,1?

And how to prevent this?

Thank you,
Georgiana May

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] regression with proportion data

2012-03-19 Thread Georgiana May
Hello,
I want to determine the regression relationship between a proportion (y)
and a continuous variable (x).
Reading a number of sources (e.g. The R Book, Quick R,help), I believe I
should be able to designate the model as:

model-glm(formula=proportion~x, family=binomial(link=logit))

this runs but gives me error messages:
Warning message:
In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

If I transform the proportion variable with log, it doesn't like that
either (values not: 0y1)

I understand that the binomial function concerns successes vs. failures and
can use those raw data, but the R Book and other sources seem to suggest
that proportion data are usable as well.  Not so?

Thank you,
Georgiana May

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.