search for: parameter1

Displaying 20 results from an estimated 20 matches for "parameter1".

Did you mean: parameters
2011 Sep 12
2
regression on data subsets in datafile
I have data of the form tC <- textConnection(" Subject Date parameter1 bob 3/2/99 10 bob 4/2/99 10 bob 5/5/99 10 bob 6/27/99 NA bob 8/35/01 10 bob 3/2/02 10 steve 1/2/99 4 steve 2/2/00 7 steve 3/2/01 10 steve 4/2/02 NA steve 5/2/03 16 kevin 6/5/04 24 ") data <- read.table(header=TRUE, tC) close.connection(tC) rm(tC) I am trying to calculate rate of change of...
2007 Jul 18
1
passing a parameter to a file from command line
Hi, I have a file fileFoo.R, say that contains these two lines, invoking function foo that is specified in "foo_details.R": source("foo_details.R") foo(parameter1) I want to specify and pass parameter1 in my command line when invoking R in linux: R --no-save <fileFoo.R. How can I do that? And how can I retrieve the value of parameter1 in my fileFoo.R function (something analogous to perl: my $parameter1=$ARGV[0])? Thank you Zava -------------...
2010 Jan 29
3
Applying a function on each columns of a matrix
...004838299 -0.0040383645 -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 (...
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) tripl...
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:/...
2007 Mar 27
1
basic handling of data.frame
...use it to compute 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 con...
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)
...nt from my previous 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 sho...
2013 Dec 02
1
Class parameter flexibility with ENC, hiera or both
...tially any other ENC, but I would say this is the most widespread one). - Pure Puppet''s site.pp users with Hiera as the only data binding. But let''s say that within mymodule there is a define mymodule::mydefine that uses variable values from mymodule, let''s say mymodule::parameter1. I need to include mymodule to be able to use it, right? This is the example: class mymodule (param1 = ''default_value'') { } define mymodule::mydefine () { include mymodule ## just to make sure it was parsed before case (mymodule::param1) {blabla} } If you only use Hiera...
2002 Nov 09
2
Nonlinear regression and categories
...ataset that 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 Nov 01
1
structure data
Hello, 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 bui...
2009 Feb 19
0
Zelig method setx()
...s, each having a different formula, same data set, and same model (normal.bayes). My problem lies in the setx() method, where I am setting a numeric parameter to a value other than the mean. This is straightforward if I input the parameters name into setx(). i.e., setx.out<-setx(zelig.model, parameter1=20) where parameter1 is the name of the given parameter. To automate this process, via a for loop, I need to reference the parameter from the zelig.model object, by using a index. i.e,. for (i in 1:10){ setx.out<-setx(zelig.model, zelig.model$coefficients[4] <- value*i } So far, I have...
2010 Jan 26
3
Apply a function on an array with the parameter as an array
Hello R buddies, I want to apply a function on an array but for each element of the array I want to use a different parameter, So here is how I tried to enter the function: apply(as.matrix(X),2, function, parameter1 = arrayOfParameter) I put X as a matrix because it was initially an element of a list. It returns me an array with the same length as X but with values that I don't even understand...Can someone please help me? -- View this message in context: http://n4.nabble.com/Apply-a-function-on-an-array-...
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
2011 Oct 24
1
[LLVMdev] Function pointer parameters in PTX backend
Hi everybody, I am trying to produce ptx code starting from OpenCL C. I am experiencing a problem concerning pointer parameters. Here follows an example: kernel void function(__global float* parameter1) {} NVIDIA NVCC Compiler: .entry function( .param .u32 *.ptr* .global .align 4 function_param_0 ) { ret; } CLANG + LLVM PTX backend // (skipping builtin functions definitions) .entry function (.param .b32 __param_1) // @function { // BB#0: // %entry exit; }...
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
2020 Jun 12
2
Send message to AMI from dialplan
...ears like: Event: 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/piper...
2012 May 09
0
Error in outer() : dimension mismatch
...and the part of the 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[,...
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 {