similar to: constrained optimization

Displaying 20 results from an estimated 1000 matches similar to: "constrained optimization"

2007 Jun 06
3
Using odesolve to produce non-negative solutions
Hello, I am using odesolve to simulate a group of people moving through time and transmitting infections to one another. In Matlab, there is a NonNegative option which tells the Matlab solver to keep the vector elements of the ODE solution non-negative at all times. What is the right way to do this in R? Thanks, Jeremy P.S., Below is a simplified version of the code I use to try to do this,
2009 Jun 01
3
Editor R
Do you know any good editor R? -- View this message in context: http://www.nabble.com/Editor-R-tp23822342p23822342.html Sent from the R help mailing list archive at Nabble.com.
2009 Oct 05
1
3D polar plots
Hello, I am very new to R. I would like to plot astronomy data by right ascension, declination, and various "distance" values, such as redshift and comoving distance, in 3D. Is there any 3D polar plotting functions? I can't seam to locate any information on whether it exists or not.
2011 Mar 11
3
robust estimation
Hi, I have been looking through all packages but I cannot find a routine for LAD-regression (L1-norm-regression). Is there none? Willi
2011 Feb 24
2
how to plot equalprobable error ellipse?
hi,R users, Now I have some scatter figures, is there some method can plot equalprobable error ellipse ? -- TANG Jie Email: totangjie@gmail.com Tel: 0086-2154896104 Shanghai Typhoon Institute,China [[alternative HTML version deleted]]
2011 Nov 21
2
count ties after rank?
Hello! I need to use Kruskal-Wallis test and post-hoc test (Dunn's test) for my data. But when I searched around, I only found this function: kruskal.test. But nothing for Dunn's test. So I started to write one myself. But I do not know how to count ties in the data frame. I can use for loops but it seems long and unnecessary since the rank function actually knows the ties. So
2009 Oct 09
2
user input in R
I'm just learning R (I don't know any other programming languages), and I have a question. I am trying to figure out how to ask for user input (say, a set of 3 numbers) then put those numbers into an array. I've looked around, but I haven't been able to find any answers that I understand. Thanks!
2011 Aug 31
8
!!!function to do the knn!!!
hi, r users i have a problem with KNN. i have 2 datasets, X0 and X1. >dim(X0) >1471*13 dim(X1) >5221*13 and for every instances in the dataset X1, i want to find the nearest neighbour(1nn) in the dataset X0. and i dont have the true classifications of dataset X1. but the function knn() need true classifications(cl) to do prediction. i just curious if there are some other function
2006 Oct 20
1
Cardinality constraint
Hello, How do I implement a cardinality constraint with constrOptim? I want to minimize (least square) a%*%x = 4 subject to x1<2 x2<1 x3<4 count(x1, x2, x3)= 2 (cardinality constraint) Is there a way to specify binary integer variables with constrOptim? Here's my code so far: a <-matrix(1:3,1,3) fr <- function(x) { (a%*%x-4)^2 }
2009 Oct 13
5
Introduction to mark-recapture analysis in R?
Normal 0 21 false false false MicrosoftInternetExplorer4 Dear R-helpers,   I was wondering whether there are any good books and/or website links that introduce mark-recapture analysis in R. In
2012 Jun 15
1
DEoptim example illustrating use of fnMap parameter for enforcement of cardinality constraints
Function DEoptim in package DEoptim for differential evolution defines an optional parameter fnMap: fnMap "an optional function that will be run after each population is created, but before the population is passed to the objective function. This allows the user to impose integer/cardinality constriants." Unfortunately, there is no further documentation decribing the kind of
2011 Aug 16
3
Bayesian Relative Survival Analysis in R?
Hi all, May i know does R has packages or code to run "Bayesian Relative Survival Analysis"? I have look through Bayesian Survival Analysis(2001) by Joseph George Ibrahim<http://www.google.com/search?tbo=p&tbm=bks&q=inauthor:%22Joseph+George+Ibrahim%22>, Ming-Hui Chen<http://www.google.com/search?tbo=p&tbm=bks&q=inauthor:%22Ming-Hui+Chen%22>, Debajyoti
2008 Nov 12
1
sample size estimation for count (poisson?) data?
Is there a function in R that will allow me to estimate the sample size required from count data (poisson data?), given the known variance and desired margin of error and confidence interval? My specific data set will be based on a survey of hikers that will be asked about the number of animals of species 'x' they observed during a given period. I need to know the number of hikers
2009 Jul 22
1
R extract vertices for polygon
Dear R users, I'm trying to extract from a given matrix (GROUP) the coordinates of the vertices of the different groups (i.e. 3, 7, 1 . . .) to plot the polygons to delineate the area in which each group "wins" and colour it diferentially. I can make a simple point plot, but I would like to add polygons with full colored area. The example is with a 5x5 matrix, but I'm working
2009 Aug 05
1
stepwise
Dear R members, I would like to know if there is a stepwise function that gives LRT value instaed of AIC? thanks in advance, Luciana Pozzi CENPAT-CONICET Argentina [[alternative HTML version deleted]]
2009 Aug 27
2
Winsorized mean and variance
Hello everybody, after searching around for quite some time, I haven't been able to find a package that provides a function to compute the Windorized mean and variance. Also I haven't found a function that computes the trimmed variance. Is there any such package around? thanks, Roberto
2010 Oct 27
1
Help extracting the source of functions
Hi there - I am new to R, so perhaps this is an old question. I am looking to find the source code for the wald.test function so I can tune it for my own needs. Where do I find it? I do not want to change wald.test. Rather, I want to find it and make a new function, say wald.test.new. thanks Andrew Martin University of Delaware [[alternative HTML version deleted]]
2011 Dec 17
1
cp2tform equivalent
I'm a new R user and am looking for an R equivalent to the Matlab 'cp2tform' function (see: http://www.mathworks.com/help/toolbox/images/ref/cp2tform.html). cp2tform accepts pairs of 2D control points and produces a least-squares optimized spatial transformation from one set of points to the other. Specifically, I'm looking to produce the coefficients of a 3rd order polynomial
2011 Mar 24
1
Colour makes my life; but not my bwplot (panel.violin)
Using Trellis, am successfully setting up a number of panels (25) in which I have two box and violin plots. I would like to colour - one plot as RED and the other as BLUE (in each panel). I can do that with the box plots, but the violin density areas just take on one colour. My basic call is as follows: bwplot(rmsd ~ file | code, data=spread_data.filtered, panel = function(...,
2012 Feb 17
3
stepwise selection for conditional logistic regression
 Hi, Is there any function available to do stepwise selection of variables in Conditional(matched) logistic regression( clogit)? step, stepwise  etc are failing in case of conditional logistic regression. Please help.  Thanks P.T. Subha [[alternative HTML version deleted]]