similar to: Bi variate minimization problem

Displaying 20 results from an estimated 1200 matches similar to: "Bi variate minimization problem"

2018 Jan 20
1
Specification: Bi variate minimization problem
------------------- Version 2 of my problem improving the definition of what the optimal solution would be. Dear all, I'm working on the following problem: Assume two datasets: Y, Y that represent the same physical quantity Q. Dataset X contains values of Q after an event A while dataset Y contains values of Q after an event B. In R X, Y are vectors of the same length, containing
2017 Jun 29
1
Changing ggplot2 legend key/title to custom text
Hi Petr and thanks for your reply, That's the problem I don't want to modify the labels of my legends but the title of the legend in itself inserting my custom text :) Take for example the 1st graph in this tutorial http://www.sthda.com/english/wiki/ggpubr-r-package-ggplot2-based-publication-ready-plots I want to change the "sex" in "sex subscript 2" or "
2017 Jun 29
0
Changing ggplot2 legend key/title to custom text
Hi There are plenty of examples https://stackoverflow.com/questions/6202667/how-to-use-subscripts-in-ggplot2-legends-r https://stackoverflow.com/questions/19507742/using-expressionpaste-to-insert-math-notation-into-a-ggplot-legend which you can modify. If you say "but it wont' seem to work" how can we know what does it mean? Plotmath expressions are rather tricky, especially if
2018 Feb 09
1
Optim function returning always initial value for parameter to be optimized
Hello, I'm trying to fminimize the following problem: You have a data frame with 2 columns. data.input= data.frame(state1 = (1:500), state2 = (201:700) ) with data that partially overlap in terms of values. I want to minimize the assessment error of each state by using this function: err.th.scalar <- function(threshold, data){ state1 <- data$state1 state2 <- data$state2
2017 Jun 29
2
Changing ggplot2 legend key/title to custom text
Hi all, ok I have this issue: I want to change my graphs legends to custom text, often requiring the use of superscripts/subscripts I tried to use this instruction I found on stack overflow: labs(x = "R(Ohm)", y= "CDF", aesthetic= " Content (%)" ) but it wont' seem to work. Also tried bquote for super/ subscripts xlab(bquote(~x~/(~x~ + ~MO[2]~)*
2018 Feb 10
0
Optim function returning always initial value for parameter to be optimized
On 02/10/2018 06:00 AM, r-help-request at r-project.org wrote: > Did you check the gradient? I don't think so. It's zero, so of course > you end up where you start. > > Try > > data.input= data.frame(state1 = (1:500), state2 = (201:700) ) > err.th.scalar <- function(threshold, data){ > > state1 <- data$state1 > state2 <- data$state2 >
2008 Oct 01
0
xpred.rpart() in library(mvpart)
R-users E-mail: r-help@r-project.org Hi! R-users. http://finzi.psych.upenn.edu/R/library/mvpart/html/xpred.rpart.html says: data(car.test.frame) fit <- rpart(Mileage ~ Weight, car.test.frame) xmat <- xpred.rpart(fit) xerr <- (xmat - car.test.frame$Mileage)^2 apply(xerr, 2, sum) # cross-validated error estimate # approx same result as rel. error from printcp(fit) apply(xerr, 2,
2006 Jul 01
5
generate bi-variate normal data
Dear all, I would like to generate bi-variate normal data given that the first column of the data is known. for example: I first generate a set of data using the command, x <- rmvnorm(10, c(0, 0), matrix(c(1, 0, 0, 1), 2)) then I would like to sum up the two columns of x: x.sum <- apply(x, 1, sum) now with x.sum I would like to generate another column of data, say y, that makes
2012 Oct 25
2
How to extract auc, specificity and sensitivity
I am running my code in a loop and it does not work but when I run it outside the loop I get the values I want. n <- 1000; # Sample size fitglm <- function(sigma,tau){ x <- rnorm(n,0,sigma) intercept <- 0 beta <- 0 ystar <- intercept+beta*x z <- rbinom(n,1,plogis(ystar)) xerr <- x + rnorm(n,0,tau) model<-glm(z ~ xerr, family=binomial(logit))
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
Updating gnulib has caused -Wformat-signedness to be enabled. This has revealed many problems in C format strings. The fixes here fall into the following main categories: - Using %d with an unsigned parameter. - %x and %o expect an unsigned argument. - uid_t and gid_t are unsigned on Linux. The safe way to print these is to cast them to uintmax_t and then print then using the %ju
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
Updating gnulib has caused -Wformat-signedness to be enabled. This has revealed many problems in C format strings. The fixes here fall into the following main categories: - Using %d with an unsigned parameter. - %x and %o expect an unsigned argument. - uid_t and gid_t are unsigned on Linux. The safe way to print these is to cast them to uintmax_t and then print them using the %ju
2012 Oct 20
1
Logistic regression/Cut point? predict ??
I am new to R and I am trying to do a monte carlo simulation where I generate data and interject error then test various cut points; however, my output was garbage (at x equal zero, I did not get .50) I am basically testing the performance of classifiers. Here is the code: n <- 1000; # Sample size fitglm <- function(sigma,tau){ x <- rnorm(n,0,sigma) intercept <- 0 beta
2012 Oct 26
0
Problems getting slope and intercept to change when do multiple reps.
library(ROCR) n <- 1000 fitglm <- function(iteration,intercept,sigma,tau,beta){ x <- rnorm(n,0,sigma) ystar <- intercept+beta*x z <- rbinom(n,1,plogis(ystar)) xerr <- x + rnorm(n,0,tau) model<-glm(z ~ xerr, family=binomial(logit)) *int*<-coef(model)[1] *slope*<-coef(model)[2] # when add error you are suppose to get slightly bias slope. However when I change
2011 May 01
3
Portal2 running very hard
Can any1 help me with my portal2? it's running very hard. Used OpenBox ,disabled sound, in order to get a better frame rate, but still not playable.. Could any1 give me some tips? New user, so a step by step guide would be very usefull :P I am using Linux mint 10 (based on Ubuntu 10.10)
2008 Apr 30
0
[OT] Before thinking on my startup... what elements would I need?
Hello all, I''m looking for some advice on what skills / subjects to get me involved before thinking in executing my plans of starting my own thing (startup thing). I already have a great idea of application as a service. I''m sketching it and doing some brainstorm and planning. But something came into my mind... You know, technology isn''t everything. Using Rails will
2008 Jan 02
2
how to ignore or omit somethings while reading the data table
hello respected ppl... am a engg. student...i was trying to use R in statistical calculations now the problem is..i imported a huge tsv file onto R...it has a column which gives cost...and it has "$" with each numerical value in this column...it is something like this..$.05,$.1,$.075...and so on.. R is reading it as "character vector"... i tried using all the arguments but
2012 Sep 21
2
efficient overlapping average curve on original curves
Dear useRs, my question could be very basic for which i apologize in advance. Each column of a matrix with dimensions 365 rows and 37 columns was drawn against another matrix of dimensions 365 rows and 1 column. with that i was able to draw 37 curves on the same axis. now i want to draw an average curve of these 37 curves on the same axis in such a way that all the curves (average and 37
2007 Aug 02
1
Foreign Key Use
Hi can any1 guide me ,How can i use foreign Key concept in rails, I m using Migrations to create tables, Also i want to know diffrent fields we can use while creating tables. I mean like String,Date time, timestamp,,,,Plz tell me various fields so that i can Make proper use of them as per requirement. Thank u in advance -- Posted via http://www.ruby-forum.com/.
2008 Jul 04
4
trying to play Regnum Online
trying to play Regnum Online go into log in screen but then after it says unsupported video card there are three possible causes for this error: 1. your video card is too old 2. you haven't installed the last available driver. 3 you havent installed the latest DirectX version. i'm new to linux and wine. can any1 please guide me throught this using ubunto
2008 Nov 04
1
how to integrate dspam with dovecot-antispam ?
Hello, i dont get dovecot-antispam working, i think ? any1 can help me, how to configure dovecot-antispam that it work together with dspam ? i have postfix / dovecot setup as virtual user / domains.......... marko thanks for any hints or help. -- -- *Marko Weber* | Administration *SALON DIGITAL* Media GmbH Rothenbaumchaussee 19a 20148 Hamburg T. (040) 429 48 68 - 23 F. (040) 429 48