Displaying 20 results from an estimated 400 matches similar to: "optimize() stuck in local plateau ?"
2012 Apr 07
1
quadratic model with plateau
Dear All,
I would like to make a quadratic with a plateau model in R. Is there a
package in R doing this? The bentcableAR package seems won't work.
The link below describes what I am looking for in R exactly:
http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlin_sect033.htm
--
Thanks so much!
Orange
help.ly2005@gmail.com
[[alternative HTML version
2007 Jul 13
2
Suggestion to extend aggregate() to return multiple and/or named values
Hi all,
This is my first post to the developers list. As I understand it,
aggregate() currently repeats a function across cells in a dataframe
but is only able to handle functions with single value returns.
Aggregate() also lacks the ability to retain the names given to the
returned value. I've created an agg() function (pasted below) that is
apparently backwards compatible (i.e.
2007 Sep 27
3
Aggregate factor names
Hi all,
A suggestion derived from discussions amongst a number of R users in
my research group: set the default column names produced by aggregate
() equal to the names of the objects in the list passed to the 'by'
object.
ex. it is annoying to type
with(
my.data
,aggregate(
my.dv
,list(
one.iv = one.iv
,another.iv = another.iv
,yet.another.iv = yet.another.iv
)
2007 Sep 17
1
Create correlated data with skew
Hi all,
I understand that it is simple to create data with a specific
correlation (say, .5) using mvrnorm from the MASS library:
> library(MASS)
> set.seed(1)
>
> a=mvrnorm(
+ n=10
+ ,mu=rep(0,2)
+ ,Sigma=matrix(c(1,.5,.5,1),2,2)
+ ,empirical=T
+ )
> a
[,1] [,2]
[1,] -1.0008380 -1.233467875
[2,] -0.1588633 -0.003410001
[3,] 1.2054727 -0.620558768
2007 Jun 26
2
Power calculation with measurement error
Hi all,
Hopefully this will be quick, I'm looking for pointers to packages/
functions that would allow me to calculate the power of a t.test when
the DV has measurement error. That is, I understand that, ceteris
paribus, experiments using measure with more error (lower
reliability) will have lower power.
Mike
--
Mike Lawrence
Graduate Student, Department of Psychology, Dalhousie
2007 Aug 08
3
SWF animation method
Hi all,
Just thought I'd share something I discovered last night. I was
interested in creating animations consisting of a series of plots and
after finding very little in the usual sources regarding animation in
R directly, and disliking the imagemagick method described here
(http://tolstoy.newcastle.edu.au/R/help/05/10/13297.html), I
discovered that if one exports the plots to a
2008 May 09
1
lme() with two random effects
Hi all,
I have collected response time data from 178 participants ('sub') for
each combination of 4 within-Ss factors ('con','int','tone','cue').
Additionally, I have recorded the gender of each participant, so this
forms a between-Ss factor ('gender'). Normally this would be analyzed
using aov:
2004 Mar 17
0
NLS question:Quadratic plus plateau fit
Dear R colleagues:
Am trying to fit a simple NL model to determine Economical Optimum Nitrogen
Rates.
The segmented (quadratic + plateau) model only works with some y's, in some
cases I get a "singular gradient" error.
I'll appreciate any ideas in how to solve the singular gradient error.
Thanks,
Jose
# The following code works using yield2 in the nls model but not using
2009 Jan 24
1
fonction PLATEAU???
Hello,
I am working on extracting data from sound recording (fee bee song of the black-capped chickadee). I obtained a two column matrix with x=time(s) and y=frequency(khz). The part of the recording that is interesting me is when the frequency is stable. Does somebody ever used a fonction that extract only constant data among a huge list of data (sample= 180000)?
Thanks
Thibault Grava
2006 Apr 23
1
Comparing GLMMs and GLMs with quasi-binomial errors?
Dear All,
I am analysing a dataset on levels of herbivory in seedlings in an
experimental setup in a rainforest.
I have seven classes/categories of seedling damage/herbivory that I want to
analyse, modelling each separately.
There are twenty maternal trees, with eight groups of seedlings around each.
Each tree has a TreeID, which I use as the random effect (blocking factor).
There are two
2007 Jun 20
2
how to create cumulative histogram from two independent variables?
Hi all,
I am extremely newbie to R. Can anybody jump-start me with any clues as to
how do I get a cumulative histogram from two independent variables,
cumhist(X,Y) ?
-jose
[[alternative HTML version deleted]]
2007 Jun 22
1
connecting to running process possible?
Hello,
i'm trying to find a more modern system to reproduce the functionality that
was available through the Histoscope program (from Fermilab). Namely, the
capability of connecting to a running process and having plots update in
realtime in response to new data. Is this possible with R? Thank you,
Charles Cosse
[[alternative HTML version deleted]]
2007 Aug 30
1
xyplot() groups scope issue
Hi all,
Tinkering with a wrapper for xyplot that will help me plot a bunch of
plots in a data analysis I'm doing and I ran into an odd error that
I'm guessing is a scope issue. Here's a very simple version of the code:
###############
#load lattice
library(lattice)
#create the wrapper function
do.xyplot = function( plot.formula, data.frame, plot.groups){
print(plot.groups)
2010 Nov 21
3
R help
Dear All,
I'm a beginner user in R and I would like to make a quadratic and
plateau model in R. Can you help please with an example?
Thanks so much
--
Ahmed M. Attia
Assistant Lecturer
El-Khattara farm Station
Agronomy Dept.,
Zgazig Univ., Egypt
Visiting Scientist
Haskell Agricultural laboratory
Agronomy and Horticultural Dept.,
Univ. of Nebraska-Lincoln
ahmedatia at zu.edu.eg
2007 May 24
2
Calculation of ratio distribution properties
Hi all,
Looking to calculate the expected mean and variance of a ratio
distribution where the source distributions are gaussian with known
parameters and sample values are correlated. I see (from wikipedia:
http://en.wikipedia.org/wiki/
Ratio_distribution#Gaussian_ratio_distribution) that this calculation
is quite involved, so I'm hoping that someone has already coded a
function to
2007 Oct 06
1
Tricky vectorization problem
Hi all,
I'm using the code below within a loop that I run thousands of times
and even with the super-computing resources at my disposal this is
just too slow. The snippet below takes about 10s on my machines,
which is an order of magnitude or two slower than would be
preferable; in the end I'd like to set the number of monte carlo
experiments to 1e4 or even 1e5 to ensure stable
2007 Jun 26
3
surprising difference in log()
Hello everybody
My collegue and I noticed a strange behaviour of R on different
platforms. It's a simple computation, but results are rather different.
On Windows XP:
> floor(log(8,2))
[1] 3
which is what one should expect.
Here's instead the result with Mac OS X (same version, 2.5.0
(2007-04-23))
> floor(log(8,2))
[1] 2
Is it a "bug" in R or in the operating
2012 Jun 01
1
Finding multiple breakpoints - 'segmented' ?
Hello,
I'm attempting to find multiple breakpoints in an association of my
response variable (R.AUC) with two explanatory variables ('s.size' and
'bedekking'). The association between 's.size' and 'R.AUC' shows a
plateau, but the value when this plateau is reached is differs for
different values of 'bedekking'.
Initially I thought these different
2012 Aug 14
3
self-starter functions for y = a + b * c^x
Hi
there are some predefined self-start functions, like SSmicmen, SSbiexp,
SSasymp, SSasympOff, SSasympOrig, SSgompertz, SSflp, SSlogis, SSweibull,
Quadratic, Qubic, SSexp (nlrwr)
Btw, do you know graphic examples for this functions?
The SSexpDecay (exponential decay) for y = (y0 - plateau)*exp(-k*x) +
plateau from
2007 Jun 16
0
Fwd: How to set degrees of freedom in cor.test?
You could calculate the confidence interval of the correlation at
your desired df: http://davidmlane.com/hyperstat/B8544.html
The below code takes as arguments the observed correlation, N, and
alpha, calculates the confidence interval and checks whether this
includes 0.
cor.test2=function(r,n,a=.05){
phi=function(x){
log((1+x)/(1-x))/2
}
inv.phi=function(x){