similar to: nlm question

Displaying 8 results from an estimated 8 matches similar to: "nlm question"

2004 Oct 11
1
Puzzled on nlm
Dear R People: Here is a function to minimized: >mfun1 function(x,a) { x[1] <- a[1]*x[2] + a[3] - a[2]*(a[1]-a[2])*a[3] x[2] <- a[1]*x[1] - a[2]*a[3] return(x) } Here is my first try: >nlm(mfun1,c(1,1)) Error in f(x, ...) : Argument "a" is missing, with no default > >nlm(mfun1,c(1,1),a=c(0.8,0.5,1)) Error in nlm(mfun1, c(1, 1), a = c(0.8, 0.5, 1)) :
2011 Aug 31
0
generate correlated qualitative data
Dear R experts: I have following problem: # myfunction mfun1 <- function(x) { if ( x == 2){ xv <- sample(c(2,1,0),100, replace = T, prob = c(0.6, 0.2, 0.2)) } if ( x == 1){ xv <- sample(c(1,0),100, replace = T, prob = c(0.6, 0.4)) } if ( x == 0) { xv <- sample(c(0,0),100, replace = T, prob = c(0.5, 0.5)) } return(xv) } # applying the function x = mfun1(1) # just what I
2011 Sep 01
0
UNSOLVED: Fwd: generate correlated qualitative data
The problem remain unsolved. If you have any idea please do suggest .................... thank you; Ram H On Wed, Aug 31, 2011 at 12:06 PM, Ram H. Sharma <sharma.ram.h@gmail.com>wrote: > Dear R experts: > > I have following problem: > > # myfunction > mfun1 <- function(x) { > if ( x == 2){ > xv <- sample(c(2,1,0),100, replace = T, prob = c(0.6, 0.2,
2012 Jun 26
1
rms package-superposition prediction curve of ols and data points
Hello, I have a question about the ?plot.predict? function in Frank Harrell's rms package. Do you know how to superpose in the same graph the prediction curve of ols and raw data points? Put most simply, I would like to combine these two graphs: > fit_linear <- ols (y4 ~ rcs(x2,c(5,10,15,20,60,80,90)), x=TRUE, y=TRUE) > p <- Predict(fit_linear,x2,conf.int=FALSE) > plot (p,
2011 Mar 18
1
points() rendering points outside of input
As a followup to pi-day, I attempted to make a .gif of a simulation based estimation of pi by plotting points inside a single quadrant of a circle (a la?http://www.drewconway.com/zia/?p=2667 ). ?When rendering the individual x,y pairs with points() I intermittently see points crop up around (2,0.5) but the input values for x and y are bounded between 0 and 1. square<-structure(c(0, 0, 1, 1, 0,
1999 Dec 16
1
nlm in R version 0.90
I am trying to obtain some more detail regarding the nlm function available in the latest release of R. Specifically, what mimimization routine is being used... and ... does there exist a fortran or C version of it? Thank you, Joanna Joanna Elizabeth MILLS, M.Sc. Ph: (902) 494-3747 Dalhousie University Fax: (902) 494-5130 Department of Mathematics and
2001 Aug 23
2
difficulies with boxplot
Dear list, sorry for bothering you with a probably simple question... I searched the archive but couldn't find the right answer. I have computed upper and lower bounds of a region and would like to plot them in a boxplot. My problem is now to get the two boxplots in the same graphic so that the boxplot of the upper bounds is directly on top of the boxplot of the lower bounds. The reason I
2010 May 05
0
R-help Digest, Vol 87, Issue 5
Unsubscribe -----Original Message----- From: r-help-request at r-project.org Date: Wed, 05 May 2010 12:00:09 To: <r-help at r-project.org> Subject: R-help Digest, Vol 87, Issue 5 Send R-help mailing list submissions to r-help at r-project.org To subscribe or unsubscribe via the World Wide Web, visit https://stat.ethz.ch/mailman/listinfo/r-help or, via email, send a message with subject