Displaying 20 results from an estimated 300 matches similar to: "Outbound route prefixes"
2008 Jul 23
1
Questions on weighted least squares
Hi all,
I met with a problem about the weighted least square regression.
1. I simulated a Normal vector (sim1) with mean 425906 and standard deviation 40000.
2. I simulated a second Normal vector with conditional mean b1*sim1, where b1 is just a number I specified, and variance proportional to sim1. Precisely, the standard deviation is sqrt(sim1)*50.
3. Then I run a WLS regression without the
2010 Sep 01
1
Looks like a bug in subsetting of a complicated object
I don't understand what is happening! I have a (large) object sim1, an
matrix list
with dim c(101,101) where each element is an 3*3 matrix. I am
subsetting that with
a matrix coo, of dim c(100,2), of unique indices, but the resulting object
has length 99, not 100 as expected.
Code reproducing the problem follows:
library(RandomFields)
set.seed(123)
sim0 <- GaussRF(x=seq(0, 100, by=1),
2007 Jul 14
3
How to read many files at one time?
I want to load many files in the R. The names of the files are "Sim1.txt", "
Sim2.txt", "Sim3.txt", "Sim4.txt", "Sim5.txt" and so on.
Can I read them at one time? What should I do? I can give the same names in
R.
Thanks.
For example:
> tst=paste("Sim",1:20,".txt",sep="") # the file names
> tst
[1]
2012 Mar 16
2
Elegant Code
Hi,
Can anyone help to write a more elegant version of my code? I am sure
this can be put into a loop but I am having trouble creating the
objects b1,b2,b3,...,etc.
b1 <- rigamma(50,1,1)
theta1 <- rgamma(50,0.5,(1/b1))
sim1 <- rpois(50,theta1)
b2 <- rigamma(50,1,1)
theta2 <- rgamma(50,0.5,(1/b2))
sim2 <- rpois(50,theta2)
b3 <- rigamma(50,1,1)
theta3 <-
2011 Mar 23
1
rbind a heterogeneous row
I have a dataframe with many rows like this:
> df
X1 X2 X3 X4 X5 X6 X7 week d
sim1 FALSE TRUE TRUE TRUE TRUE TRUE TRUE 1 0.3064985
sim1 is the rowname, X1..X7,week,d are the column names. X1..X7 are factors, booleans in this case.
I need to add another row, represented by the following list:
list(rep(T,7),5,0.0)
-- i.e, TRUE in all boolean columns,
2010 Jan 29
1
FracSim set.seed
Hi,
I am using the FracSim library to simulate a time series. However, the
simulate function ignores my attempt to set the RNG seed I need for
reproducible research. The published docs and google have not yielded an
answer, so any help greatly received.
Thanks,
Selwyn
## Example code snippet
library(FracSim)
## simulate some 1d fractal data
set.seed(1234)
sim1 = fracsim.1d(h=0.5,k=1000,n=5000)
2006 Feb 27
1
Different deviance residuals in a (similar?!?) glm example
Dear R-users,
I would like to show you a simple example that gives an overview of one
of my current issue.
Although my working setting implies a different parametric model (which
cannot be framed in the glm), I guess that what I'll get from the
following example it would help for the next steps.
Anyway here it is.
Firstly I simulated from a series of exposures, a series of deaths
(given a
2012 May 25
1
equivalent to source() inside a package
Hi all:
I'm working on a project that I have packaged for ease of
distribution. The different simulations in the package share code, so
obviously I have those parts organized as functions. Now, I want to
show people my code, but the structure with the internal functions
might be a little confusing to follow. One thing I tried was to have
the code of the functions as their own R files in the
2012 Sep 10
1
usb port issue in 9.1-Prerelease (Possibly Cam related)
Hi Folks,
I've facing an intermittent hang with a USB port which seems cam
related:
Event's that happen are:
o USB modem (HUAWEI E220) plugged into PC
ugen3.2: <HUA WEI> at usbus3
u3g0: <3G Modem> on usbus3
u3g0: Found 3 ports.
umass0: <USB MASS STORAGE> on usbus3
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0:6:0:-1: Attached to scbus6
umass1: <USB
2019 Dec 27
2
"simulate" does not include variability in parameter estimation
Hello, All:
????? The default "simulate" method for lm and glm seems to ignore the
sampling variance of the parameter estimates;? see the trivial lm and
glm examples below.? Both these examples estimate a mean with formula =
x~1.? In both cases, the variance of the estimated mean is 1.
??? ??????? * In the lm example with x0 = c(-1, 1), var(x0) = 2, and
2019 Dec 27
1
"simulate" does not include variability in parameter estimation
On 2019-12-27 04:34, Duncan Murdoch wrote:
> On 26/12/2019 11:14 p.m., Spencer Graves wrote:
>> Hello, All:
>>
>>
>> ? ????? The default "simulate" method for lm and glm seems to ignore the
>> sampling variance of the parameter estimates;? see the trivial lm and
>> glm examples below.? Both these examples estimate a mean with formula =
>>
2007 Dec 01
2
Need help on changing a table
Hi all:
Im kind of new on R and I need help changing a table. The thing is, i read a
file on R using the read.table command and the table looks like this:
Item 3d Plot XY plot
001 1 0
001 0 1
001 0 1
002 1 0
002 1 0
002 0 1
...
2008 May 08
1
scrime Package simulatedSNP function
Hello,
I need some help with the simulatedSNPs function from scrime package.
I am trying to simulate some genotype of a case/control disease locus. The
allele frequence are cases/controls
Sample cases controls
2000 .5 .10
1500 .6 .40
In each of the row, i need to simulate 100 snp and calculate the pvalue
##############Download Scrime
2005 Mar 31
2
how to simulate a time series
Dear useRs,
I want to simulate a time series (stationary; the distribution of
values is skewed to the right; quite a few ARMA absolute standardized
residuals above 2 - about 8% of them). Is this the right way to do it?
#--------------------------------
load("rdtb") #the time series
> summary(rdtb)
Min. 1st Qu. Median Mean 3rd Qu. Max.
-1.11800 -0.65010 -0.09091
2012 Feb 06
2
Custom extension: dial a queue
Dear, I need to create a custom device extension in order to dial a
local queue.
Suppose my queue number is 8888, how can fill the Dial field from the
custom extension ???
Because if I put just 8888 or Local/8888, I don't succeed.
Thanks a lot
2007 May 04
3
decimal values
hello,
how can I do to drop decimal after the comma please for example for tthis line
> print(P)
[1] 62.000000 1.000000 7.661290 5.200000 17.100000 2.318801
how canI do to keep only 62 1 7.66 5.2 17.1 2.32
thanks
__________________________________________________
ble contre les messages non sollicités
[[alternative HTML version deleted]]
2018 Jan 16
3
Exception handling support for a target
On 16 Jan 2018, at 10:18, Tim Northover via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>> Is the above list complete? Do I understand their purpose correctly (sort
>> of)?
>
> There are components in libunwind (especially) and compiler-rt you'll
> also need to look at if you're not on top of an existing runtime.
The libUnwind parts are relatively
2015 Feb 27
2
situation with ivr and four-channel gateway
2015-02-27 10:25 GMT-06:00 A J Stiles <asterisk_list at earthshod.co.uk>:
> O.K. So what does your existing Dial() statement in extensions.conf look
> like?
>
apology, put the gateway was sangoma but is a openvox ,
all my outgoing calls out for this context:
[my-mobile-out]
exten => _NXXXXXXX,n,Dial(SIP/1003/${EXTEN},55,rT)
exten =>
2010 Jan 22
2
sorted reshaping?
dear R wizards:? I am wrestling with reshape.? I have a long data set
that I want to convert into a wide data set, in which rows are firms
and columns are years.
> summary(rin)
firm fyear sim1
Min. :1004.00 Min. :1964.0 Min. : -1.00000
1st Qu.:1010.00 1st Qu.:1979.0 1st Qu.: -0.14334
Median :1016.00 Median :1986.0 Median : 0.00116
Mean
2012 Sep 30
0
interleaving messages on umass detach
Hi.
No biggie, but when I remove a umass device it appears that two kernel messages
are being written at the same time.
(da4:umass-sim1:1:0:0): lost device - 0 outstanding, 1 refs
(da4:(pass6:umass-sim1:1:umass-sim1:1:0:0:0): removing device entry
0): passdevgonecb: devfs entry is gone
(FreeBSD 9.1-PRERELEASE #0 r241067)
Cheers
Michiel