Displaying 17 results from an estimated 17 matches for "parameter2".
Did you mean:
parameters
2008 Nov 20
2
Elegant way to transform dataframe?
Hello,
I have a dataframe with columns like:
parameter1 parameter2 metricname value
and I'd like to transform it into a dataframe with columns:
parameter1 parameter2 metric1 metric2 metric3
where the values for each metric would be in the appropriate column. There are often multiple values for a given (parameter1, parameter2, metricname) triple. In this...
2000 Sep 20
1
'fixing' list components
I have a list x (say) that will contain many inputs to and outputs a model.
x$input1 <- assign.input1(parameter1, parameter2)
is one way to assign input1, but it would be neater to be able to do
assign.input1(x, parameter1, parameter2)
Is this a good idea? If so, what is a good way to do it?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwi...
2010 Jan 29
3
Applying a function on each columns of a matrix
...383645 -0.0090406831 -0.011027569
[5,] 0.035648755 0.0334815590 0.0380977404 0.059817597
I want to apply a function on each column varying the first parameter of the
function. If I do it on one column only with apply it works perfectly as
follow:
apply(column1, 1, myfunction, parameter1= ..., parameter2=...)
But when I try to do it on each column without even varying the parameter it
doesn't work:
apply(matrix, 2, apply, MARGIN = 1, Fun = myfunction, parameter1 =...,
parameter2=...)
I get the following error:
Error in FUN(newX[, i], ...) :
unused argument(s) (2, function (X, MARGIN, FUN, ....
2006 Oct 08
9
Organizing tests and mocha expectations
I''m simultaneously getting into using Mocha and RSpec-style tests
(courtesy of the simply_bdd plugin) and I''m struggling with some
issues while trying to organize my specs/test. Here''s a code example
illustrating the problem:
context "update cliient invalid data" do
include ClientsControllerSpecHelper
specify "should render edit form" do
2006 Oct 05
2
A statement over multiple lines (i.e. the ... feature in Matlab)
...vious question. Some functions I have written require many
parameters, and so do not fit nicely into an 80 column width display.
This is usually avoided, by spreading that particular statement over
a few lines. This is something that I do in Matlab with the following:
myFunc( parameter1, ...
parameter2, ...
parameter3, ...
parameter4)
The ... operator in Matlab allows me to spread a statement over
several lines. The ... operator in R seems to be more like the ...
operator in C, which allows for a variable argument list.
How do I accomplish this task in R? It's not a show stopper, but i...
2002 Nov 09
2
Nonlinear regression and categories
...is the parameter estimates of the equation for
each observation (as opposed to running them one at a time -- I have several
million I need to do). Is there a way to get R to run a nonlinear
regression based on the above or similar data structure, and return a
database of ObservationID, parameter1, parameter2, parameter3 for each
observation?
Thanks!
--j
--
Jonathan Greenberg
Graduate Group in Ecology, U.C. Davis
http://www.cstars.ucdavis.edu/~jongreen
http://www.cstars.ucdavis.edu
AIM: jgrn307 or jgrn3007
MSN: jgrn307 at msn.com or jgrn3007 at msn.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2007 Mar 27
1
basic handling of data.frame
...mpute the statistics of my medical study.
The study includes several parameters for a number of patients. Each
parameter was assessed by a number of readers, once with a special
condition, once without.
Now I have a data.frame with colums like:
PatientID, ReaderID, SpecialCond(yes/no), Parameter1, Parameter2.....
the rows are not sorted, and the table is not complete (e.g. some
readers didn't read all cases under all conditions).
What I would like to do now is for example compute Cohen's Kappa
(ckappa from package(psy)) for Parameter1 under special condition
against no special condition.
Ther...
2007 Nov 01
1
structure data
...I have a quite simple question, I guess. I have a data frame and I would like
to process the data in several ways.
The processing is dependent on grouping (factors) and the parameter itself.
Meaning for parameter1 in the df, I would like to calculate the mean and sd
when grouping by factor1. But parameter2 might be different. I thought of a
structure like this:
group1
param1 (mean, sd)
param2 (sum)
group2
param1 (mean, sd, median)
param2 (mean, sd)
I'm not sure how to build up this "processing info" structure. (The processing
itself will be later based o...
2006 Jul 18
5
a best way to write this.
I have a form, with 3 fields, then in my controller I get the paramters
to run a query but I don''t want to filter with paramters if they are
nil or blank...
I''m doing this
@condition = ''''
if(params.....)
@condition = @condition + " myparamter = " + params[.....
if(params.....)
@condition = @condition + " myparamter = " +
2009 Jul 17
6
Solving two nonlinear equations with two knowns
Dear R users,
I have two nonlinear equations, f1(x1,x2)=0 and f2(x1,x2)=0. I try to use optim command by minimize f1^2+f2^2 to find x1 and x2. I found the optimal solution changes when I change initial values. How to solve this?
BTW, I also try to use grid searching. But I have no information on ranges of x1 and x2, respectively.
Any suggestion to solve this question?
Thanks,
Kate
2020 Jun 12
2
Send message to AMI from dialplan
...: myEvent
Privilege: call,all
Channel: PJSIP/misspiggy-00000001
Uniqueid: 1368479157.3
ChannelState: 3
ChannelStateDesc: Up
CallerIDNum: 657-5309
CallerIDName: Miss Piggy
ConnectedLineName:
ConnectedLineNum:
AccountCode: Pork
Priority: 1
Exten: 123
Context: inbound
Parameter1: param1
Parameter2: param2
I'm thinking about ways that I can send messages from the dialplan to my own
application which listens to AMI events.
Thanks
Andrea
Trainee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/...
2012 May 09
0
Error in outer() : dimension mismatch
...he
program (the function) which causes the error:
Error: outer(par1, par2, y1, y2, FUN = function.subplot, KERNEL = KERNEL,:
dims [product 25921] [1] does not match the length of the object.
par1 <- seq(-3,3,0.1)
par2<- seq(-3,3,0.1)
x<-cbind(par1,par2) # par1:parameter1,
par2: parameter2, sigma is the third parameter that I fix
densityfunction <- function(x, y1,y2, sigma=0.2){ # y1 and y2: the data
x <- matrix(x, nrow = 1)
function.value <- 0
for (i in 1:T){ # T: the length of the data
k <- y1[i] - x[,2]*y2[i] - (1-x[,2])*x[,1]
...
2012 Jun 18
1
using hiera for node classification
Hi All,
I''ve been trying to use Hiera for node classification, my sit.pp is simple:
node default {
hiera_include("classes")
}
which has been working well with simple class definitions like:
user@host$ cat testagent.yaml 2012-06-18 14:55:48 jon pts/13
---
classes:
- motd
Is anyone doing this in production? I''ve seen a little about this on line
but it
2006 Apr 29
10
A Good Tutorial on Params and Variables
I have found various posts about instance variables, session variables
and parameters (each of which seems to use differnet syntax and have
different view on the "best practice") I would like to find a single,
reliable source that provides a good overview on all of it.
Specifically, I would like to learn how to pass parameters between
controllers and how to set session variables so
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying.
In javascript, I''m using the ajax.updater, and it (obviously) writes
back out to a div. I want to then compare what was echoed out into
this div (which came from the php file I listed in ajax.updater) with
a string.
test should equal "SomeString" because that is what is being echoed
out to
2011 Jul 28
14
Actionmailer Help Needed
Hello everyone,
Nice to meet you all, am new to the forum.
I''m stuck with rake / actionmailer trying to display a set of found
records.
We have a simple actionmailer rake task that is supposed to send a daily
email digest of tasks that are due for a specific user. So far, it''s
working but the email only displays the first message.
In my task model
scope :tasksdue, lambda {
2009 Aug 28
64
[PATCH 2/2] graphics passthrough with VT-d
This patch supports basic gfx passthrough on QEMU:
- disable emulated VGA adpater if there is passthroughed gfx
- register/unregister legacy VGA I/O ports and MMIOs for passthroughed gfx
Signed-off-by: Ben Lin <ben.y.lin@intel.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
_______________________________________________
Xen-devel mailing list