similar to: Nonlinear regression and categories

Displaying 20 results from an estimated 700 matches similar to: "Nonlinear regression and categories"

2006 Oct 05
2
A statement over multiple lines (i.e. the ... feature in Matlab)
Hello again list, I thought I'd start a new thread, seeing as it's completely different 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(
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 case, I want to use the
2010 Jan 29
3
Applying a function on each columns of a matrix
Hello everyone, I have the following matrix [,1] [,2] [,3] [,4] [1,] 0.002809706 0.0063856960 0.0063856960 0.011749681 [2,] 0.004893124 0.0023118418 -0.0005122951 -0.014646465 [3,] 0.003547897 0.0063355297 0.0030410542 0.011403953 [4,] 0.004838299 -0.0040383645 -0.0090406831 -0.011027569 [5,] 0.035648755 0.0334815590 0.0380977404
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
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
2007 Mar 27
1
basic handling of data.frame
Hello, I'm new to R but wan't to 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
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
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
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 parameter1 in
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
2014 Oct 15
2
Advice on package design for handling of dots in a formula
I am working on a new package, one in which the user needs to specify the role that different variables play in the analysis. Where I'm stumped is the best way to have users specify those roles. Approach #1: Separate formula for each special component First I thought to have users specify each formula separately, like: new.function(formula=y~X1+X2+X3, weights=~w,
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
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
2013 Dec 02
1
Class parameter flexibility with ENC, hiera or both
Dear puppetteers, I am having a philosophical question about parametrized classes. When building modules, one wants to be as flexible as possible, to try to target as many puppet flavors as possible. This is our target: - Foreman users, using foreman as an ENC with smart variables (or potentially any other ENC, but I would say this is the most widespread one). - Pure Puppet''s site.pp
2005 Oct 26
1
help with a self-starting function in nonlinear least squares regression.
Hello. I am having a problem setting up a self-starting function for use in nonlinear regression (and eventually in the mixed model version). The function is a non-rectangular hyperbola - called "NRhyperbola" - which is used for fitting leaf photosynthetic rate to light intensity. It has one independent variable (Irr) and four parameters (theta, Am, alpha and Rd). I have created this
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 = " +
2017 Oct 18
4
Error messages using nonlinear regression function (nls)
Hi all, I am trying to use nonlinear regression (nls) to analyze some seed germination data, but am having problems with error codes. The data that I have closely matches the germination dataset included in the drc package. Here is the head of the data temp species start end germinated TotSeeds TotGerminated Prop 1 10 wheat 0 1 0 20 0 0.0 2 10 wheat
2017 Oct 20
0
Error messages using nonlinear regression function (nls)
>>>>> PIKAL Petr <petr.pikal at precheza.cz> >>>>> on Fri, 20 Oct 2017 06:33:36 +0000 writes: > Hi > Keep your messages in the list, you increase your chance to get some answer. > I changed your data to groupedData object (see below), but I did not find any problem in it. > plot(wlg) > gives reasonable picture and I am
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