Displaying 20 results from an estimated 6000 matches similar to: "need help with ramdomly sampling some data"
2010 Sep 28
1
ramdom sampling from a dataset
I am trying to get R to pick random integers from my dataset (i.e.
bootstrapping) with replacement. However, my attempts at this have been
unsuccessful. Here is a basic example of what I am doing:
I have a data vector of 8 integers (data= 2,5,9,4,5,6,7,8). I used the
sample function and it worked but it only repeated my values in the exact
same order. It did not randomly sample them. Here
2010 Sep 29
2
repeat a function
I have R randomly sampling my array made up of 2 columns of data. Here is
my code randomly sampling 5 different rows from my dataset to create a new
dataset of 8 rows of data:
testdat<-growth[sample(5,8,replace=T),]
Now I want to tell R to repeat this function 50 times and give me the
output. I have been searching the internet and have been unable to figure
this out. Any advice
2010 Sep 29
2
resampling issue
I am trying to get R to resample my dataset of two columns of age and length
data for fish. I got it to work, but it is not resampling every replicate.
Instead, it resamples my data once and then repeated it 5 times.
Here is my dataset of 9 fish samples with an age and length for each one:
Age Length
2 200
5 450
6 600
7 702
8 798
5 453
4 399
1 120
2 202
Here is my code which resamples my
2010 Oct 01
3
maximum likelihood problem
I am trying to figure out how to run maximum likelihood in R. Here is my
situation:
I have the following equation:
equation<-(1/LR-(exp(-k*T)*LM)*(1-exp(-k)))
LR, T, and LM are vectors of data. I want to R to change the value of k
to maximize the value of equation.
My attempts at optim and optimize have been unsuccessful. Are these the
recommended functions that I should use to maximize
2010 Sep 29
1
next step in randomly sampling
Thanks to the people on this list I was able to fix my code for randomly
sampling. Thanks.
Now, I am moving on to the next step and I ran into another snag. I have a
large dataset but I am starting with a small made-up dataset until I figure
it out. I have two columns of data (age and length). I got R to read my
data called growth which is the age and length for 10 fish:
>
2010 Oct 02
1
[Fwd: RE: maximum likelihood problem]
I forgot to add that I first gave a starting value for K.
Nonlinear least squares won't work because my errors are not normally
distributed.
Any advide on my maximum likelihood function would be greatly appreciated.
---------------------------- Original Message ----------------------------
Subject: RE: [R] maximum likelihood problem
From: "Ravi Varadhan" <rvaradhan at
2010 Oct 01
4
cleaning up a vector
I calculated a large vector. Unfortunately, I have some measurement error
in my data and some of the values in the vector are erroneous. I ended up
wih some Infs and NaNs in the vector. I would like to filter out the Inf
and NaN values and only keep the values in my vector that range from 1 to
20. Is there a way to filter out Infs and NaNs in R and end up with a
clean vector?
Mike
2010 Sep 29
2
fitting model to resampled data
I apologize if this comes across as confusing. I will try to explain my
situation as best I can.
I have R bootstrapping my growth data for fish. It's resampling my database
of age and length data and then produces several new datasets for me. In
this case, it's resampling my data to create three new datasets of age and
length data. Here is my code with my original data called
2010 Oct 01
0
[Fwd: Re: cleaning up a vector]
It turns out I didn't have to filter out the 1-20 values.
The code of x[is.finite(x)] did the trick.
Thanks!!!
Mike
---------------------------- Original Message ----------------------------
Subject: Re: [R] cleaning up a vector
From: "Henrique Dallazuanna" <wwwhsd at gmail.com>
Date: Fri, October 1, 2010 1:55 pm
To: mlarkin at rsmas.miami.edu
Cc: r-help
2008 Mar 14
2
Multiple should_receive(:render).with
I''m trying to specify that a particular view must render two different partials.
My spec looks like:
describe AClass do
it do
template.should_receive(:render).with(:partial => ''foo'', :locals => { ... })
...
end
describe ''some conditional case'' do
it do
template.should_receive(:render).with(:partial =>
2004 Jun 02
2
getting started on MacOS X
Hello -
I am attempting to test rsync on a series of 8 MacOS X servers. On my
initial test, I configured one machine as the "sender" and one machine
to "receive."
On the "sending" machine, I created an rsyncd.conf file. On the
"receiving" machine, I issued the command
rsync --daemon
To which I got no error messages.
On the "sending"
2006 Apr 12
1
Any case studies available for RoR implementation?
Hi,
I am doing a research project on application frameworks (specifically the
evaluation and selection of) and Rails is one of the key frameworks I am
evaluating.
Does anyone know of any case studies on RoR out on the Internet?
Is anyone prepared to write up a case study for me on a project that
succeeded thanks to the structure and dynamism of Rails? Only needs to be 1
page. Anyone who
2003 Mar 12
0
job opportunity
The University of Miami's Rosenstiel School of Marine and Atmospheric
Sciences (RSMAS) is seeking a research associate to work with
hydrographic data. The objective of the project is to develop
statistical models for estimating salinity and density from
observations of temperature together with knowledge of location and
time. Because the relationship between salinity and temperature can
be
2003 Mar 12
0
job opportunity
The University of Miami's Rosenstiel School of Marine and Atmospheric
Sciences (RSMAS) is seeking a research associate to work with
hydrographic data. The objective of the project is to develop
statistical models for estimating salinity and density from
observations of temperature together with knowledge of location and
time. Because the relationship between salinity and temperature can
be
1997 Nov 06
1
Any Amiga Samba users?
I'm thinking of using Samba to allow my laptop 486 to access the
CDrom, internet link and large hard disks in my Amiga. Does
anyone know if this would be easy to do, and if it's possible to get
Samba running using Miami?
cheers, Evan.
2017 Jun 12
1
URGENT: Update issues from 3.6.6 to 3.10.2 Accessing files via samba come up with permission denied
Did the logs provide any hints as to what the issue may be?
Diego
On Sat, Jun 3, 2017 at 12:16 PM, Diego Remolina <dijuremo at gmail.com> wrote:
> Thanks for taking the time to look into this. Since we needed downtime
> due to the gluster update, we also updated the OS, including samba. We
> went from 4.2.x to 4.4.4 and many other packages for CentOS were
> updated as well. OS
2007 Nov 12
4
how to assign a group mean to individual cases?
I need advice on how to create a variable that is the group mean of
another variable.
For example, I have a variable called x for which each row in the data
set has a value. I also have a nominal variable called g that
indicates which of 100 different groups each row belongs to.
So, I want to create a new variable called w, which is the group mean
of x for which ever group the row belongs to (as
2007 Nov 13
2
group mean, minus each row's value
I used the following to assign each row the group average, where w is
the new group average variable, x is the variabale to be averaged, and
g is the nominal group indicator:
w <- ave(x,g)
Now I want to calculate the group average, but WITHOUT each row's
value of x. Is there an easy way to do this? I'm sure I'm missing
something obvious here, but for the life of me I can't
2003 Apr 24
1
bandwith calculation
I would like to know how to calculate the amount of bandwith I would need to host X number of calls.
For example, if user A in San Francisco with an ATA 186 calls user B in New York with an ATA 186 and Asterisk is being hosted in a PC in Miami. How much bandwith do I need to have in Miami? Do I just need bandwith for the setup of the call (ie the SIP part) or are there any instances where the
2016 May 02
5
C6 Firefox 45.1 segmentation faults
I think this site is always failing. It has an embedded video.
http://www.sportsnet.ca/basketball/nba/free-association-podcast-much-toronto-raptors-fear-miami-heats-dwayne-wade-hassan-whiteside-joe-johnson/
I tried looking at the output of
strace firefox > fferrors.txt 2>&1
grep ENOENT fferrors.txt
hope that helps
Note: I also have ffmpeg with nux's repo installed
On Mon, May