Displaying 20 results from an estimated 100 matches similar to: "scrime Package simulatedSNP function"
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
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]
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),
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 <-
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
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 Mar 16
1
Outbound route prefixes
Dear all, I use Trixbox as my PBX. Until a couple of days I've installed a
GSM Gateway to communicate with our three cellular phones:
15 64227777
15 64228888
15 64229999
The GSM Gateway has just one SIM.
I use the Free PBX web interface in order to set up the route and trunk
parameters:
Trunk:
*******
Name:
SIM1
Peer details:
host=10.10.1.2 (IP from GSM Gateway)
port=5060
type=peer
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
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 =
>>
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
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
2004 Jun 03
2
Simulating a landscape (matrix) in R
I'm trying to figure out how one might go about simulating a landscape
(matrix) in R. For example if one wanted to generate a simulated landscape
of precipitation values for some area (say a 100 X 100 matrix) they could
generate 10,000 numbers using a random normal distribution with a mean and
std. dev. and randomly allocate these generated numbers to the grid cells.
However, this is too
2003 Jul 02
2
Batch files in R
When I submit more than one batch file (same programs, different parameter
values, huge simulations, different result names) the only results that get
saved are from the *last* batch file to finish. They are all being run in
the same subdirectory (so same .RData file?)
I've done:
R --save BATCH infile outfile
and I've also put
q(save="yes")
at the end of the program, but
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
2015 Mar 02
0
situation with ivr and four-channel gateway
On Friday 27 Feb 2015, ricky gutierrez wrote:
> the problem is that my pbx all incoming calls using only the channel
> gsm 1 , the idea is that an incoming call to channel 1 is passed to
> channel 2
Ah. *Incoming* calls are not something that is within your control; they have
already been routed onto a line by your telco. So you will need to speak to
someone at your telco about doing
2009 Sep 27
3
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* bdoc (1.0)
Michael Anderson
http://crantastic.org/packages/bdoc
This package contains a function that will classify DNA barcodes as
well as a few test and reference data sets.
* bdsmatrix (1.0)
Terry Therneau
http://crantastic.org/packages/bdsmatrix
This is a special case of sparse matrices, used by coxme and