Re: [R] [FORGED] How to fit the following data and get the equation describing them?

2019-02-12 Thread Jeff Newmiller
To elaborate on Rolf's suggestion... the data you have does not look like the LJ plot on the referenced web page... You should be investigating the nature of this data and how it is really supposed to relate to potential energy physics before putting it into a numerical meat grinder. Garbage in

Re: [R] Using ggplot2 geom_path() in a grouped variable

2019-02-12 Thread Norberto Hernandez
Rui: Thank you very much for your help! It works the way you do. My problem was with the time I declare the control group: My code: p <- ggplot(data, aes(Pretrend, Outcome)) + geom_point(aes(colour=factor(Control)) Your solution: p <- ggplot(data, aes(Pretrend, Outcome, colour = factor(Control))

Re: [R] [FORGED] How to fit the following data and get the equation describing them?

2019-02-12 Thread Rolf Turner
On 2/13/19 12:33 PM, Martin Beseda wrote: Hello everybody, I have a following data-set:     > data$R [1] 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40     [16] 1.45 1.50 1.55 1.60 1.65 1.70 1.75 1.80 1.85 1.90 1.95 2.00 2.05 2.10 2.15     [31] 2.20 2.25 2

[R] How to fit the following data and get the equation describing them?

2019-02-12 Thread Martin Beseda
Hello everybody, I have a following data-set:     > data$R [1] 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40     [16] 1.45 1.50 1.55 1.60 1.65 1.70 1.75 1.80 1.85 1.90 1.95 2.00 2.05 2.10 2.15     [31] 2.20 2.25 2.30 2.35 2.40 2.45 2.50 2.60 2.65 2.70 2.75 2.8

Re: [R] Using ggplot2 geom_path() in a grouped variable

2019-02-12 Thread David Winsemius
To Norberto; Your code _probably_ would have succeeded if you had used color as a grouping argument, or you could have used group or linetype or probably others, but I find locating the listing of ggplot2 "behavioral" parameters rather frustrating. These details are not to be found in any of ?a

Re: [R] Using ggplot2 geom_path() in a grouped variable

2019-02-12 Thread Rui Barradas
Hello, I am not understanding the problem. With a made up dataset everything seems right. set.seed(1234)# make the results reproducible n <- 10 data <- data.frame(Pretrend = rep(1:10, 2), Outcome = 1:10 + rnorm(2*n), Control = rep(1:2, each = n)) libra

Re: [R] Using ggplot2 geom_path() in a grouped variable

2019-02-12 Thread David Winsemius
> On Feb 12, 2019, at 2:09 PM, Norberto Hernandez > wrote: > > Hi! I am trying to make a scatter/path graph in one variable that is > divided in two groups (variable Control), but when I use the > geom_path() option, the line continues from the group one to the group > two, and I wasn't able

[R] Using ggplot2 geom_path() in a grouped variable

2019-02-12 Thread Norberto Hernandez
Hi! I am trying to make a scatter/path graph in one variable that is divided in two groups (variable Control), but when I use the geom_path() option, the line continues from the group one to the group two, and I wasn't able to avoid it.I need the path draws over the group one and then draws over th

[R] Define semi landmarks in 2d GMM data

2019-02-12 Thread azadeh mohaseb via R-help
HelloI have a question about the geometric morphometris in R. I use generally the geomorph package for my analyses.I have a set of 2D landmarks. I want to define my semi landmarks. Here is the list of my landmarks and semi landmarks. 22 semilandmarks between landmarks 1 and 220 semilandmarks bet

[R] Should I use full models when using Powersim?

2019-02-12 Thread Chi Zhang
I tried using powersim from R package simr to estimate the number of participants that I need for an experiment. I performed the simulation based on the data from my pilot study. The model I used is sketched below: fit <- glmer(B ~ a+b+a:b (1+a+b+a:b|Subject) + (1+a+b+a

Re: [R] faster execution of for loop in Fishers test

2019-02-12 Thread peter dalgaard
> On 12 Feb 2019, at 02:45 , Bert Gunter wrote: > > 1. I believe Fisher's exact test is computationally intensive and takes a > lot of time for large structures, so I would say what you see is what you > should expect! (As I'm not an expert on this, confirmation or contradiction > by those who