search for: d_3

Displaying 4 results from an estimated 4 matches for "d_3".

Did you mean: d3
2010 Jan 26
3
Problem with "nls" function
...ou please help me, it is very important for my phd thesis. Thanks in advance. Hammadi. -------------- next part -------------- mat<- read.csv(file="mat.csv",head=FALSE,sep=";") y<-read.csv(file="y.csv",head=FALSE,sep=";") Y=y[,1] D_1=mat[,1] D_2=mat[,2] D_3=mat[,3] D_4=mat[,4] Y_1=mat[,5] Y_2=mat[,6] Y_3=mat[,7] Y_4=mat[,8] s_F=mat[,9] s_G=mat[,10] L.minor=data.frame(Y=Y,D_1=D_1,D_2=D_2,D_3=D_3,D_4=D_4,Y_1=Y_1,Y_2=Y_2,Y_3=Y_3,Y_4=Y_4,s_F=s_F,s_G=s_G) stdS=1/(sd(s_F)) stdG=1/(sd(s_G)) L.minor.m1<-nls(Y~a_1_1*D_1+a_2_1*D_2+a_3_1*D_3+a_4_1*D_4+a_1_2*(...
2019 Sep 14
0
'==' operator: inconsistency in data.frame(...) == NULL
...################################################################# d_0 = data.frame(a = numeric(0)) # zero length data.frame d_00 = data.frame(numeric(0)) # zero length data.frame without names names(d_00) <- NULL # remove names to obtain value being an empty list() at the end of Ops.data.frame d_3 = data.frame(a=1:3) # non-empty data.frame m_0 = matrix(logical(0)) # zero length matrix #------------------------ # error A: # Error in matrix(if (is.null(value)) logical() else value, nrow = nr, dimnames = list(rn,? : # length of 'dimnames' [2] not equal to array extent d_0 == 1?? # er...
2008 Jun 03
3
How to solve a non-linear system of equations using R
Dear R-list members, I've had a hard time trying to solve a non-linear system (nls) of equations which structure for the equation i, i=1,...,4, is as follows: f_i(d_1,d_2,d_3,d_4)-k_i(l,m,s) = 0 (1) In the expression above, both f_i and k_i are known functions and l, m and s are known constants. I would like to estimate the vector d=(d_1,d_2,d_3,d_4) which is solution of (1). Functions in R to estimate f_i-k_i are at the end of this message. Any help/suggestions/c...
2019 Sep 11
2
'==' operator: inconsistency in data.frame(...) == NULL
Sorry, I can't reproduce the example below even on the same machine. However, the following example produces the same error as NULL values in prior examples: > setClass("FOOCLASS", +????????? representation("list") + ) > ma = new("FOOCLASS", list(M=matrix(rnorm(300), 30,10))) > isS4(ma) [1] TRUE > data.frame(a=1:3) == ma Error in