search for: subdiv

Displaying 5 results from an estimated 5 matches for "subdiv".

Did you mean: subdir
2008 Mar 13
3
Use of ellipses ... in argument list of optim(), integrate(), etc.
...ed after the main arguments and before method control arguments. This results in the user having to specify the exact (complete) names of the control arguments, i.e. partial matching is not allowed. An example with integrate() : > integrate(function(x) exp(-x^2), lower=-Inf, upper=L, subdiv=1000) Error in f(x, ...) : unused argument(s) (subdiv = 1000) > integrate(function(x) exp(-x^2), lower=-Inf, upper=L, subdivisions=1000) 1.633051 with absolute error < 1.6e-06 Here is an example with optim(): > res <- optim(50, fw, meth="BFGS", control=l...
2008 Aug 02
1
problem with nested loop for regression
...I would be very grateful for any suggestions. Below is a brief version of my code: #Code start library(zoo) seed.set(1) Pmat<-matrix(rnorm(1000), nrow=100, ncol=100) maxcol<-ncol(Pmat) maxrow<-nrow(Pmat) startrow<-10 period<-10 wind<-2 #roll window subdiv<-period/wind rollstart<-11 #start roll at period+1 #converting Pmat into ts for rollapply() to work... PmatTS<-ts(Pmat) Preg<-matrix(NA,ncol=maxcol,nrow=2*maxrow) PmatWt<-matrix(NA, nrow=subdiv,ncol=maxcol) mult_col<-matrix(1:5, nrow=5, ncol=1) #rolling calculations... fo...
2005 Oct 09
1
enter a survey design in survey2.9
...ill read this message. I have data from a complexe stratified survey. The population is divide in 12 regions and a region consist to and urban area and rural one. there to region just with urbain area. stratification variable is a combinaison of region and area type (urban/rural) In rural area, subdivision are sample with probabilties proporionnal to size in population then enuration area are sample in selected division and finally households are selected in those EA. In urban area, EA are directly selected and finally household are selected. to schematise we have: (12 regions) each reg...
2012 Jan 27
3
Numerical instability in new R Windows development version
...x^2 + y^2 <= 1)) > dblquad(f3, -1, 1, -1, 1) # 2.094395124 , i.e. 2/3*pi , err = 2e-8 Warning in sqrt((1 - (x^2 + y^2)) * (x^2 + y^2 <= 1)) : NaNs produced Warning in sqrt((1 - (x^2 + y^2)) * (x^2 + y^2 <= 1)) : NaNs produced Error in integrate(function(y) f(x, y), ya, yb, subdivisions = subdivs, : non-finite function value Calls: dblquad ... <Anonymous> -> f -> do.call -> mapply -> <Anonymous> -> integrate Execution halted ** running examples for arch 'x64' ... ERROR Running examples in 'pracma-Ex.R' failed...
2007 Aug 27
4
Sortable + Table = Ouch!
I have an HTML table I am trying to "retro-fit" with a sortable such that a cell in one column/row and be moved to another. What I have tried in tyerms of formatting looks akin to: <div id="schedule"> <table> <tr> <td><div id="one">Some Text</div></td> <td><div