Displaying 20 results from an estimated 6000 matches similar to: "simulation in R"
2016 Apr 20
0
simulation in R
I realized that there was a typo error. I mean "Monte Carlo Simulation"
________________________________________
From: R-help <r-help-bounces at r-project.org> on behalf of Kristi Glover <kristi.glover at hotmail.com>
Sent: April 19, 2016 11:48 PM
To: R-help
Subject: [R] simulation in R
Hi R user,
Would you mind to help me to find the range with stochastic events? For
2012 Jun 13
3
How to plot linear, cubic and quadratic fitting curve in a figure?
Hi R experts,
Could you please help me to fit a linear, cubic and quadratic curve in a figure? I was trying to show all these three fitting curves with different colour in one figure.
I spent substantial time to figure it out, but I could not.
I have given here a example and what I did for linear, but no idea for cubic and quadratic fitting curve
> dput(test)
structure(list(sp = c(4L, 5L,
2007 Jul 11
2
Previously saved workspace restored
hi there,
i an beginner of R. some one have sent me a file (extension is .Rdata). i have installed R in my computer and i just double clicked the data. then it automatically opened R programme and displayed that [previously saved workspace restored]. the following message was displayed.
Type 'demo()' for some demos, 'help()' for on-line help, or'help.start()' for an
2012 Jun 28
3
would you give me your hand to standardize columns in a matrix?
Hi R User,
Would you give me your hand to standardize some columns in a matrix?
I have included the example table.
> dput(test)
structure(list(X = c(1, 2, 3, 4, 5, 6), Y = c(4, 5, 6, 7, 8,
9), temp = c(0.818, 0.113, 0.256, 0.587, 0.955, 0.207), oxy = c(0.797,
0.487, 0.727, 0.128, 0.514, 0.031)), .Names = c("X", "Y", "temp",
"oxy"), row.names =
2012 May 10
6
averaging two tables (rows with columns)
Hi R user,I am struggling to figure out on how I can calculate the average from the two tables in R. Any one can help me? really your help would be grateful- I am spending so much time to figure it out. It should not be so hard, I think.
I have very big data but I have created a hypothetical data for simplification.
for example
I have : table 1
table 1: species occurance data
2012 Aug 04
2
how to assing unique ID in a table and do regression
Hi R- User
I have very big data set (5000 rows). I wanted to make classes based on a column of that table (that column has the data which is continuous .) After converting into different class, this class would be Unique ID. I want to run regression for each ID.
For example I have a data set
> dput(dat)
structure(list(ID = c(0.1, 0.8, 0.1, 1.5, 1.1, 0.9, 1.8, 2.5,
2, 2.5, 2.8, 3, 3.1, 3.2,
2012 May 14
2
package ‘adehabitat’ is not available (for R version 2.15.0) on Mac OS X
Hi R- User,I tried to load package adehabitat for R version 2.15.0. But, I got error. even I download and save in local drive and tried to install from the local file. but still i got the following errors
install.packages("adehabitat", repos='C:/adehabitat_1.8.10.tgz')
package ‘adehabitat’ is not available (for R version 2.15.0)
> install.packages("adehabitat",
2012 May 10
2
Combine two tables by row with different columns
Hi R user,
I could not combine two tables. Would any one help me on how I can combine with following example tables?
> T1
X Y Z XX
A 1 5 9 13
B 2 6 10 14
C 3 7 11 15
D 4 8 12 16
> T2
X Y XX
a 1 4 7
b 2 5 8
c 3 6 9
I want to get the following table
cT
X Y XX
A 1 5 13
B 2 6 14
C 3 7 15
D 4 8 16
A1 1 4 7
B1 2 5 8
C1 3 6 9
Thanks for your help.
Thanks,
Kristi
===
2012 Apr 29
1
r2 and p value dispaly in table
Hello R User,
I was trying to display r.squared and p value in table from regression, but I could not display these parameters in the table (matrix)
for example
individual <- c(1,1,6,8,8,9,9,9,12,12)
day <- c(4,17,12,12,17,3,9,22,13,20)
condition <- c(0.72, 0.72, 0.67, 0.73, 0.76, 0.65, 0.68, 0.78, 0.73, 0.71)
test <- data.frame(individual, day, condition)
ind.id <-
2012 Sep 20
2
how can I give same name to column and row?
Hi R User,
I calculated a correlation matrix and I was trying to give a same name for rows and columns (heading) in the correlation matrix. But, I was not able to do so.
Would you mind let me know how I can assign the same name for the heading of row and columns in the matrix?
I appreciate for your help.
cheers,
K
[[alternative HTML version deleted]]
2013 Jun 23
1
Which is the final model for a Boosted Regression Trees (GBM)?
Hi R User,
I was trying to find a final model in the following example by using the Boosted regression trees (GBM). The program gives the fitted values but I wanted to calculate the fitted value by hand to understand in depth. Would you give moe some hints on what is the final model for this example?
Thanks
KG
-------
The following script I used
#-----------------------
library(dismo)
2005 Aug 14
1
Panel data handling (lags, growth rates)
I have written two functions which do useful things with panel data
a.k.a. longitudinal data, where one unit of observation (a firm or a
person or an animal) is observed on a uniform time grid:
- The first function makes lagged values of variables of your choice.
- The second function makes growth rates w.r.t. q observations ago,
for variables of your choice.
These strike me as
2013 Apr 13
1
how can I convert a result (text) in table format in R?
Hi R user,
Could you please give me some hints on how I can convert text in table format in R?
I was doing model assessment using dismo package
for example:
bg <- randomPoints(current, 500)
pvtest <- data.frame(extract(current, occtest))
avtest <- data.frame(extract(current, bg))
e2 = evaluate(model, p=pvtest, a=avtest)
> e2
class : ModelEvaluation
n presences : 10
n
2013 Apr 24
2
How to make a raster image in R from my own data set
Hi R-user,
I was trying to make a raster map with WGS84 projection in R, but I could not make it. I found one data set in Google that data is almost the same format as of mine. I wanted to make a raster map of temperature with 1 degree spatial resolution for the global scale.
I could make it in GIS software but I do have many variables (to be many raster images) and ultimately I am importing them
2011 May 01
1
Simulation Questions
I have the following script for generating a dataset. It works like a champ except for a couple of things.
1. I need the variables "itbs" and "map" to be negatively correlated with the binomial variable "lunch" (around -0.21 and -0.24, respectively). The binomial variable "lunch" needs to remain unchanged.
2. While my generated variables do come out
2017 Jul 05
1
How can I make the legend in ggplot2 the same height as my plot?
Hi R Users,
I tried to increase the legend height in ggplot2, but it did not respond at all using the follwoing code. Do you have any suggestions for me?
dat<-data.frame(temperature)
P1<-ggplot(dat, aes(X, Y))
Scenario1<-P1+geom_point(aes(colour = value), size = 1)+ theme_bw()+ theme(axis.text.x = element_blank(),axis.text.y = element_blank())
2017 Jul 30
1
Add Anova statistics in each figure
Hi R Users,
I created interaction plots in ggplot2 and was trying to add output of two way ANOVA models, especially only interaction ( example treatment*control F(XX, XX) = xxx, p = xxx) into figures, but i was not able to add. Would you mind to help on how I can add information into each figure? I have attached the example data and the code that I used for this.
dat<-structure(list(Sites
2009 Mar 23
1
Syntax in lmer...
Sorry for bothering you - but I have a little problem. I`m completely
new in R and trying to use lmer. That works, but I m not sure if my code
is right, so I would just like to get an opinion from the experts.
I have a Growthrate of plants (RGR
Fixed Factors: Fertilizer, Status (alien or native plants) and their
interaction
Random Factors: Age is a covariable; than I have plantfamily and
2008 Aug 21
1
summary.lme and anova question
Dear all,
When analyzing data from a climate change experiment using linear mixed-effects models, I recently
came across a situation where:
- the summary(model) showed a significant difference between the levels of a two-level factor,
- while the anova(model) showed no significance for that factor (see below).
My question now is: Is the anova.lme() approach correct for that model? And why does
2006 Sep 17
1
time series simulation
Hi everybody
I'm trying to simulate a stochastic process in R. I would like consider n
log normal time series. The first time serie has a growth rate lower than
the second and so on. the initial time of the first serie is lower than the
initial time of the second and so on. In the long run the series have the
same value. Do you have any idea at running such a process?
Other question: How can I