3308_ko-KR
Col Sum 함수 질문수식 편집기에서 열 수식을 작성하고 Col Sum 함수로 문제가 발생했습니다.
내 데이터 세트는 다음과 같이 구성되어 있습니다.
청구 에이 비
3154 1.5 10000
844 .5 1000000
7311 1.5 1000000
22777 .5 10000
. . .
함수에 따라 값을 더하고 싶습니다.
i = 1 ~ n {log (claim_i / b) * [(b / claim_i) ^ a + 1] ^ (- 1)}의 합계.
클레임 값은 내 데이터 집합의 모든 행에 대해 합산되므로 Col Sum 함수는 당연한 선택입니다. 그러나, 행별로 a와 b 변수를 합치고 싶지는 않습니다. 각 a와 b의 행 값을 수식에 포함 시키길 원합니다.
일반적으로 대수 조작을 사용하여 합계 밖의 a 및 b 상수를 가져옵니다. 그러나이 수식의 복잡성을 감안할 때 이것은 선택 사항이 아닙니다.
~하는 것이 가능하니 들어오지 못하게 하다 Col Sum 함수의 열 변수?
많은 감사합니다,
로버트다시 : 함수 합계 함수 질문완벽하게 일했습니다!
PMroz 감사합니다.다시 : 함수 합계 함수 질문
style = "font-size : 10pt; font-family :"Courier New "; color : black;">너의
수식은 다음과 같습니다.
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> dt
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> =
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
font-family : "Courier New"; color : rgb (0, 0, 221); "> current
데이터 테이블
style = "font-size : 10pt; font-family :"Courier New ", color : black;"> ()
style = "font-size : 10pt; font-family :"Courier New ", color : navy;">;
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> mysum
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> =
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : teal;"> 0
style = "font-size : 10pt; font-family :"Courier New ", color : navy;">;
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : rgb (0, 0, 221);
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
( 나는
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> =
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : teal;"> 1
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
나는
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> <=
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; 색상 : rgb (0, 0, 221);"> nrows
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 검정;"> (
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> dt )
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
나는
style = "font-size : 10pt; font-family :"Courier New "; color : navy;"++,
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "">
청구 _i
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> =
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : rgb (0, 0, 221);
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 검정;"> (
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> dt
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : purple;"> "Claim"
style = "font-size : 10pt; font-family :"Courier New "; color : black;">) [
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> i ]
style = "font-size : 10pt; font-family :"Courier New ", color : navy;">;
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "">
무덤
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> =
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
무덤
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 네이비;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; 색상 : rgb (0, 0, 221);"> 로그
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 검정;"> (
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> claim_i
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"> / :
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> b )
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;"*
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
((
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> b
style = "font-size : 10pt; font-family :"Courier New "; color : navy;"> /
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> claim_i )
style = "font-size : 10pt; font-family :"Courier New "; color : navy;"> ^ :
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> a
style = "font-size : 10pt; font-family :"Courier New "; 색상 : 네이비;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : teal;"> 1
font-size : 10pt; font-family : "Courier New"; 색상 : 검정; ">)
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; 색상 : navy;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
(
style = "font-size : 10pt; font-family :"Courier New "; color : navy;">
style = "font-size : 10pt; font-family :"Courier New "; color : teal;"> 1
font-size : 10pt; font-family : "Courier New"; 색상 : 검정; ">)
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
font-size : 10pt; font-family : "Courier New"; 색상 : 검정; ">)
style = "font-size : 10pt; font-family :"Courier New ", color : navy;">;
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
style = "font-size : 10pt; font-family :"Courier New "; color : black;"> mysum
style = "font-size : 10pt; font-family :"Courier New ", color : navy;">;
style = "font-size : 10pt; font-family :"Courier New "; color : black;">
다시 : 함수 합계 함수 질문맞아. 나는 모든 줄에 a와 b를 합치는 것을 원하지 않는다.
예를 들어, 첫 번째 행에 대한 합계 (a = 1.5 및 b = 10,000 인 경우)
다음과 같습니다.
sum1 =
log (3154/10000) * [(10000/3154) ^ 1.5 + 1] ^ (- 1) +
log (844/10000) * [(10000/844) ^ 1.5 + 1] ^ (- 1) +
log (7311/10000) * [(10000/7311) ^ 1.5 + 1] ^ (- 1) +
log (22777/10000) * [(10000/22777) ^ 1.5 + 1] ^ (- 1) +. . .
두 번째 행의 합계 (여기서 a = .5 및 b = 1,000,000)
다음과 같습니다.
sum2 =
log (3154/1000000) * [(1000000/3154) ^. 5 + 1] ^ (- 1) +
log (844/1000000) * [(1000000/844) ^. 5 + 1] ^ (- 1) +
log (7311/1000000) * [(1000000/7311) ^. 5 + 1] ^ (- 1) +
log (22777/1000000) * [(1000000/22777) ^. 5 + 1] ^ (- 1) +. . .
나는 JMP가 이런 종류의 합계를 수행 할 수 있는지 확신하지 못한다.다시 : 함수 합계 함수 질문그래서 당신의 공식은 정말입니다.
log (claim_i / b_i) * [(b_i / claim_i) ^ a_i + 1] ^ (- 1)
그렇다면 다음을 사용할 수 있습니까?
sum (log (claim / b) * [(b / claim) ^ a + 1] ^ (- 1))
Comments
There are no comments yet