Re: [R] Piecewise (segmented) linear regression with center section slope constraint

2015-08-07 Thread Drew Morrison
Thanks, Jean. I've actually looked at that source before. The issue is that I can't constrain the slope of the /center/ section to be zero - in fact, I've applied similar code to a three-segment regression and I can get a zero slope either of the two sides, but not in the middle. Here's a list of

[R] Piecewise (segmented) linear regression with center section slope constraint

2015-08-06 Thread Drew Morrison
ipt with simulated data and my first attempt at fitting the model. You should be able to copy, paste, and run it. Thanks in advance. Drew # three-piece segmented regression # center section constrained to slope of 0. # simulate and plot data T<- 1:100 energy<- 100+75*pmax(55-T,0)+25*pmax(

[R] "Updating Loaded Package" behavior

2015-06-05 Thread Drew Marticorena
ut why the documentation has all of a sudden stopped working? Alternatively could the same thing be done at the command line forcing the user to acknowledge the issue and either progress with the install or first restart? Thank you for any help or insights into this problem drew m

[R] uGARCHspec function

2014-05-30 Thread Drew M
fixed.pars = list()) How to correctly input the mean equation in the 'external.regressors=' parameter is beyond me. Also, I don't know where my actual data fits in here as this is just a framework without any identification of the data.  Can anyone help? Drew

[R] Cannot install RPostgreSQL

2013-06-12 Thread Drew
sue no longer than a week ago. Any help you can offer would be much appreciated. Thanks, Drew -- View this message in context: http://r.789695.n4.nabble.com/Cannot-install-RPostgreSQL-tp4669380.html Sent from the R help mailing list archive at Nabble.com. _

[R] Using loops to create matrices where the variables is called with $

2012-07-09 Thread Drew Harris
can loop through i:n for x and it will pull out the right variable. This is a bit of a waste of time for 3 but I want it to do bigger sets and sets of different lengths so I don;t have to keep recoding it. Any advice would be much appreciated, Cheers, Drew [[alternative HTML version

Re: [R] using multiple cpu's - scaling in processing power

2012-06-25 Thread Drew Tyre
_ > 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. > -- Drew Tyre School of Natural Resources U

Re: [R] (no subject)

2012-05-03 Thread Drew Duckett
Live: OO#.. Dead: OO#.. Playing > Research Engineer (Solar/BatteriesO.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > --- > Sent from my

[R] (no subject)

2012-05-02 Thread Drew Duckett
Hi there I am new to R, and I was hoping you guys could help me out. I want to make a vector that is: vec(1,2,3,4,5,6,7,8,9,10) and i want to create a function called PercentileFinder, that if i plug in PercentileFinder (vec, .9) it will give me 9. Creating the function is my biggest hurdle pleas

Re: [R] Creating a loop with an indefinite end term

2012-04-10 Thread Drew Tyre
eed.edu > > > > ______ > > 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 comme

Re: [R] Error: cannot allocate vector of size...

2012-04-10 Thread Drew Tyre
t; > >[[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 prov

Re: [R] Package boot, funtion cv.glm

2012-04-10 Thread Drew Tyre
Nabble.com. > > __ > 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,

Re: [R] reclaiming lost memory in R

2012-04-10 Thread Drew Tyre
> > 30841 6337820642 660787 > > > nodesmax.nodes duplications tot.duplications > > > 3446132 811501612395 61431787 > > > samples > > >4956 >

Re: [R] reclaiming lost memory in R

2012-04-05 Thread Drew Tyre
is to use sapply(), like this fits <- list() sapply(1:N,function(i){ dataset <- generateDataset(i) fit[[i]] <- try( memoryHogFunction(dataset, otherParameters)) }) I'm assuming above that you want to save the result of memoryHogFunction from each iteration. hth Drew On Thu, Apr

Re: [R] unable to move temporary installation

2012-04-05 Thread Drew Tyre
big an issue, once the problem is understood! thank you all for your various suggestions and assistance. 2012/4/4 Uwe Ligges > > > On 03.04.2012 19:43, Drew Tyre wrote: > >> A final followup. I have identified a rather extreme workaround. The >> problem arises

Re: [R] Calculating NOEL using R and logistic regression - Toxicology

2012-04-03 Thread Drew Tyre
r 3, 2012 at 3:47 PM, Danielle Duncan wrote: > Thanks for the response, I should have clarified that the NOEL is the > smallest dose above which there is a statistically significant effect. > > On Tue, Apr 3, 2012 at 12:44 PM, Drew Tyre wrote: > >> Is this the smallest observed

Re: [R] Calculating NOEL using R and logistic regression - Toxicology

2012-04-03 Thread Drew Tyre
the posting guide > > http://www.R-project.org/posting-guide.html > > > and provide commented, minimal, self-contained, reproducible code. > > > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > > >[[alternative HTM

Re: [R] R equivalent for SQL query

2012-04-03 Thread Drew Tyre
count(*) > 1 1 3 > 1 2 2 > 1 3 1 > > Thanks, > > Steven > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www

Re: [R] unable to move temporary installation

2012-04-03 Thread Drew Tyre
debug(utils:::unpackPkgZip) and then steps through the function line by line, it works. Thank you. On Mon, Apr 2, 2012 at 12:06 PM, Drew Tyre wrote: > OK - so I followed the following steps, which I think rule out those causes > > 1) I uninstalled all remaining versions of R, and then de

Re: [R] unable to move temporary installation

2012-04-02 Thread Drew Tyre
ut I'm at a loss for how to get around it. Thanks for the suggestions, and I guess I have to work on a different computer! 2012/3/31 Uwe Ligges > On 31.03.2012 16:15, Drew Tyre wrote: > >> Hi all, >> >> I'm having a strange error that prevents me from

[R] unable to move temporary installation

2012-03-31 Thread Drew Tyre
.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.14.2 -- Drew Tyre School of Natural Resources University of Nebraska-Lincoln 416 Hard

Re: [R] problem with predict.gam in package gam

2011-09-15 Thread Drew Tyre
[1] blme_0.01-3grid_2.13.1lattice_0.19-30lme4_0.999375-41 [5] Matrix_0.9996875-3 nlme_3.1-101 stats4_2.13.1 tcltk_2.13.1 [9] tools_2.13.1 On Thu, Sep 15, 2011 at 9:44 AM, Gavin Simpson wrote: > On Wed, 2011-09-14 at 18:06 -0500, Drew Tyre wrote: >> I am trying

[R] problem with predict.gam in package gam

2011-09-14 Thread Drew Tyre
in package mgcv, but just curious as to whether this is something known and fixable? Thanks -- Drew Tyre School of Natural Resources University of Nebraska-Lincoln 416 Hardin Hall, East Campus 3310 Holdrege Street Lincoln, NE 68583-0974 phone: +1 402 472 4054 fax: +1 402 472 2946 email:

[R] (no subject)

2010-02-12 Thread Drew Smathers
Sent from my iPod __ 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.

Re: [R] [R-pkgs] package installation fails (RandomFields) - SOLVED

2009-06-11 Thread Drew Hoysak
Thanks to all who replied so quickly. Installing liblapack-dev solved the problem and I can now install RandomFields. Drew Hoysak Brandon University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] [R-pkgs] package installation fails (RandomFields)

2009-06-11 Thread Drew Hoysak
I have been unable to install the package RandomFields. I am using R 2.9.0-4 on Ubuntu 9.04. To install, I use the command: sudo R CMD INSTALL RandomFields_1.3.37.tar.gz The output follows below. Any help Would be appreciated. D. Hoysak Brandon University * Installing to library ‘/usr/local

Re: [R] run latent class analysis with R

2009-02-25 Thread Drew Linzer
poLCA is designed to work this way. There's a complete user's guide and manual on the project website at http://userwww.service.emory.edu/~dlinzer/poLCA/ http://userwww.service.emory.edu/~dlinzer/poLCA/ Thanks, Drew == Drew Linzer Assistant Professor Department of Political Sci

[R] Re-post data format question (apologies)

2009-02-07 Thread Drew Garey
PNT Forest 1 1 1 0 Meadow 2 1 0 3 With no repeating taxa names and zeros where a taxon is not listed for a site. Any help would be greatly appreciated. Regards, Drew Garey Aquatic Ecoloy Lab Manager Virginia

[R] Data format question

2009-02-07 Thread Drew Garey
site-by-taxa matrix or data frame that looks like this: LMA LCY MSA MSX Meadow 2 1 2 0 Forest 1 1 1 1 With no repeating taxa names and zeros where a taxon is not listed for a site. Any help would be greatly appreciated. Regards, Drew Garey Aquatic Ecoloy Lab Manager Virginia Commonwealth