Displaying 11 results from an estimated 11 matches for "runi".
Did you mean:
run
2010 Jan 26
1
newton method for single nonlinear equation
...n iteration method. I 'm not sure which part of the code is wrong since I'm not very good at programming but would like to learn. There seem to be some output but what I expected is a vector of z values. Thank you so much for any help given.
newton.inputsingle <- function(pars,n)
{ runi <- runif(974, min=0, max=1)
lendt <- length(runi)
## Parameter to estimate
z <- vector(length=lendt, mode= "numeric")
z <- pars[1]
## Constant value
alp <- 2.0165 ; rho <- 0.868;
c <- sqrt(pi)/(gamma(alp)*(1-rho)^alp)
f...
2010 Jan 26
1
Newton method
...n iteration method. I 'm not sure which part of the code is wrong since I'm not very good at programming but would like to learn. There seem to be some output but what I expected is a vector of z values. Thank you so much for any help given.
newton.inputsingle <- function(pars,n)
{ runi <- runif(974, min=0, max=1)
lendt <- length(runi)
## Parameter to estimate
z <- vector(length=lendt, mode= "numeric")
z <- pars[1]
## Constant value
alp <- 2.0165 ; rho <- 0.868;
c <- sqrt(pi)/(gamma(alp)*(1-rho)^alp)
f...
2004 Jan 04
2
Which ( any ) windows dlls should be moved to wine?
I'm runiing wine-20031212 on a dual boot machine. I have both win98 and
w2k installed.
Other posts have suggested these be copied. Is the the right - complete?
-set?
advapi32.dll
comctl32.dll
ddraw.dll
gdi32.dll
kernel32.dll
mfc42.dll
msvcrt.dll
ole32.dll
rpcrt4.dll
shell32.dll
shlwapi.dll
user32.dll...
2011 Feb 09
2
Generate multivariate normal data with a random correlation matrix
...l.
I'd like to generate a sample of n observations from a k dimensional
multivariate normal distribution with a random correlation matrix.
My solution:
The lower (or upper) triangle of the correlation matrix has
n.tri=(d/2)(d+1)-d entries.
Take a uniform sample of n.tri possible correlations (runi(n.tr,-.99,.99)
Populate a triangle of the matrix with the sampled correlations
Mirror the triangle to populate the other triangle forming a symmetric
matrix, cormat
Sample n observations from a multivariate normal distribution with
mean vector=0 and varcov=cormat
Problem:
This approach violates t...
2004 Feb 10
1
generate random sample from ZINB
I want to generate 1,000 random samples of sample size=1,000 from ZINB.
I know there is a rnegbin() to generate random samples from NB, and I know
I can use
the following process:
do i=1 to 1000
n=0
do i=1 to 1000
if runi(1)>0.1 then x(i) = 0; else
x(i)=rnegbin();
n=n+1;
if n>1000 then stop;
end;
output;
end;
Anybody can help me out with the R code?
Thanks very much ahead of time.
Heyen
2012 Jul 04
3
How to completely reinstall my rails environment on Mac Lion?
Hi,
I was learning rails and have completed some projects. On my laptop
everything worked for quite some time. However now when I run rails new
testapp, for example it doesn''t generate even the first testapp. How can I
completely reinstall a rails environment on my mac? I ran several step by
step tutorials how to do this, but it seems that the old rails environment
is conflicting. I
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and
Apache. After running for some time (more than a day), the SCGI
process stops with the following error (from scgi.log):
--
[ERR][24189] Collecting thread: Too many open files
[ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in
`accept''
2007 Mar 20
6
bad URI problem when submitting a form
Hi all,
I''ve a problem when submitting a form : the URL seems to be invalid. I really
don''t see the way I should try to solve that problem. I searched on the web,
but didn''t found any kind of that problem.
Here is the code :
require ''mechanize''
agent = WWW::Mechanize.new
page =
2008 Jun 24
11
Numeric Keyboard does not work Wine 1.0 + Putty 0.60
I have searched for this problem and found this link that says this problem was fixed (for WoW) in Wine 0.9.32 :
http://bugs.winehq.org/show_bug.cgi?id=6323
Is anyone else having problems with the numeric keypad not showing numbers under Wine 1.0 ?
I have everything working for putty except this crippling problem. I don't feel I can offer a terminal emulator solution where you cannot use
2012 Feb 04
9
XEN 4.1.2+Centos 6.2+Kernel 3.X
Hey hope this opne is a "make senser".
Has anyone tried the "Subject line" combo?, I''ve compiled a dozen src.rpm
kernel 3.0 and 3.1 packages with no luck to try native upstream Dom0 kernel
support with no success, just a kernel oops and constant reboots.
I followed Fedora''s wiki on building a custom kernel, even used F16''s
.config which also was a
2012 Feb 04
9
XEN 4.1.2+Centos 6.2+Kernel 3.X
Hey hope this opne is a "make senser".
Has anyone tried the "Subject line" combo?, I''ve compiled a dozen src.rpm
kernel 3.0 and 3.1 packages with no luck to try native upstream Dom0 kernel
support with no success, just a kernel oops and constant reboots.
I followed Fedora''s wiki on building a custom kernel, even used F16''s
.config which also was a