Thanks to the help of people from this forum I was able to bootstrap my data
and then apply a model to it. Thanks for all your help.
Everything worked out well, but I am having a difficult time getting the new
parameter values. I bootstrapped the data 300 times and I want to get the
300 set
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
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:
A
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
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 wo
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 leng
I got it to work. I didn't have the data listed as a vector (c in front of
the data). I copied Peter's code and it worked perfectly. Thanks!
Mike
From: Jonathan Christensen [mailto:dzhona...@gmail.com]
Sent: Tuesday, September 28, 2010 9:31 PM
To: Michael Larkin
Cc
I am trying to get R to randomly select values 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 values (i.e. data= 2,5,9,4,5,6,7,8). I used the
sample function and
8 matches
Mail list logo